Initial commit of files
This commit is contained in:
13
sbin/swap-increase
Executable file
13
sbin/swap-increase
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -f /swapfile ]; then
|
||||
echo "Increasing /swapfile size"
|
||||
swapoff /swapfile
|
||||
rm /swapfile
|
||||
fallocate -l 16G /swapfile
|
||||
chmod 600 /swapfile
|
||||
mkswap /swapfile
|
||||
swapon /swapfile
|
||||
else
|
||||
echo "No /swapfile!"
|
||||
fi
|
||||
Reference in New Issue
Block a user