Update install.sh

This commit is contained in:
Mr Chen
2024-09-13 15:24:46 +08:00
parent 6839e387c2
commit 2e14dc22ff
+22
View File
@@ -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 '卸载完成'
}