Update install.sh

pull/624/head
Mr Chen 8 months ago
parent 6839e387c2
commit 2e14dc22ff
  1. 22
      plugins/postgresql/versions/16/install.sh

@ -96,6 +96,28 @@ Install_App()
Uninstall_App()
{
if [ -f /usr/lib/systemd/system/postgresql.service ];then
systemctl stop postgresql
systemctl disable postgresql
rm -rf /usr/lib/systemd/system/postgresql.service
systemctl daemon-reload
fi
if [ -f /lib/systemd/system/postgresql.service ];then
systemctl stop postgresql
systemctl disable postgresql
rm -rf /lib/systemd/system/postgresql.service
systemctl daemon-reload
fi
if [ -f $serverPath/postgresql/initd/postgresql ];then
$serverPath/postgresql/initd/postgresql stop
fi
if [ -d $serverPath/postgresql ];then
rm -rf $serverPath/postgresql
fi
rm -rf $serverPath/postgresql
echo '卸载完成'
}

Loading…
Cancel
Save