mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update install.sh
This commit is contained in:
@@ -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 '卸载完成'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user