From 0090681ab24492c9e380f75e90b606e7f0bd1f97 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 6 Oct 2022 17:25:15 +0800 Subject: [PATCH] Update index.py --- plugins/swap/index.py | 2 ++ 1 file changed, 2 insertions(+) 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')