From 60f2ce5bd4a73838b9fbcbd6ebc744d09288838f Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 25 Jun 2022 22:52:49 +0800 Subject: [PATCH] Update install.sh --- plugins/gogs/install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/gogs/install.sh b/plugins/gogs/install.sh index 002373497..87234f31c 100755 --- a/plugins/gogs/install.sh +++ b/plugins/gogs/install.sh @@ -63,6 +63,10 @@ Install_gogs() Uninstall_gogs() { rm -rf $serverPath/gogs + if [ -f /usr/lib/systemd/system/gogs.service ];then + systemctl stop gogs + rm -rf /usr/lib/systemd/system/gogs.service + fi echo 'uninstall success' > $install_tmp }