mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Force stop all process on remove
This commit is contained in:
parent
83dabee0bb
commit
6e1185bd78
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,12 @@ domain=$(ynh_app_setting_get $app domain)
|
||||||
|
|
||||||
systemctl stop seafile-server.service
|
systemctl stop seafile-server.service
|
||||||
|
|
||||||
|
# Force to kill all process in case of a process is not stoped cleanly
|
||||||
|
pkill -f seafile-controller || true
|
||||||
|
pkill -f seaf-server || true
|
||||||
|
pkill -f ccnet-server || true
|
||||||
|
pkill -f seahub || true
|
||||||
|
|
||||||
# remove sso config to unprotect domain.tld/seafhttp in /etc/ssowat/conf.json.persistent
|
# remove sso config to unprotect domain.tld/seafhttp in /etc/ssowat/conf.json.persistent
|
||||||
test -e /var/www/$app/remove_sso_conf.py && python3 /var/www/$app/remove_sso_conf.py
|
test -e /var/www/$app/remove_sso_conf.py && python3 /var/www/$app/remove_sso_conf.py
|
||||||
test -e /opt/yunohost/$app/remove_sso_conf.py && python3 /opt/yunohost/$app/remove_sso_conf.py
|
test -e /opt/yunohost/$app/remove_sso_conf.py && python3 /opt/yunohost/$app/remove_sso_conf.py
|
||||||
|
|
Loading…
Reference in a new issue