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 }