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:
@@ -23,15 +23,15 @@ if [ ! -d $curPath/versions/$2 ];then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# if [ "${action}" == "uninstall" ];then
|
||||
# if [ -f /usr/lib/systemd/system/postgresql.service ] || [ -f /lib/systemd/system/postgresql.service ];then
|
||||
# systemctl stop postgresql
|
||||
# systemctl disable postgresql
|
||||
# rm -rf /usr/lib/systemd/system/postgresql.service
|
||||
# rm -rf /lib/systemd/system/postgresql.service
|
||||
# systemctl daemon-reload
|
||||
# fi
|
||||
# fi
|
||||
if [ "${action}" == "uninstall" ];then
|
||||
if [ -f /usr/lib/systemd/system/postgresql.service ] || [ -f /lib/systemd/system/postgresql.service ];then
|
||||
systemctl stop postgresql
|
||||
systemctl disable postgresql
|
||||
rm -rf /usr/lib/systemd/system/postgresql.service
|
||||
rm -rf /lib/systemd/system/postgresql.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
fi
|
||||
|
||||
sh -x $curPath/versions/$2/install.sh $1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user