diff --git a/plugins/swap/index.py b/plugins/swap/index.py index cf4c36b3d..c8cc2b874 100755 --- a/plugins/swap/index.py +++ b/plugins/swap/index.py @@ -187,6 +187,8 @@ def changeSwap(): swapOp('stop') os.system('dd if=/dev/zero of=' + getServerDir() + '/swapfile bs=1M count=' + size) + + os.system('mkswap ' + getServerDir() + '/swapfile') os.system('chmod 600 ' + getServerDir() + '/swapfile') swapOp('start')