Update install.sh

pull/123/head
midoks 3 years ago
parent 384c4b6423
commit fa7bf97fc2
  1. 6
      plugins/swap/install.sh

@ -38,13 +38,11 @@ Uninstall_swap()
{ {
swapoff $serverPath/swap/swapfile swapoff $serverPath/swap/swapfile
if [ -f /usr/lib/systemd/system/swap.service ];then
rm -rf /lib/systemd/system/swap.service
fi
if [ -f /usr/lib/systemd/system/swap.service ];then if [ -f /usr/lib/systemd/system/swap.service ] || [ -f /lib/systemd/system/swap.service ];then
systemctl stop swap systemctl stop swap
systemctl disable swap systemctl disable swap
rm -rf /usr/lib/systemd/system/swap.service
rm -rf /lib/systemd/system/swap.service rm -rf /lib/systemd/system/swap.service
systemctl daemon-reload systemctl daemon-reload
fi fi

Loading…
Cancel
Save