mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
Add upgrade support for uwsgi service
This commit is contained in:
parent
c0db10fa59
commit
5d0b16f4cd
1 changed files with 9 additions and 0 deletions
|
@ -71,6 +71,15 @@ if [ -z "$db_name" ]; then # If db_name doesn't exist, create it
|
||||||
ynh_app_setting_set "$app" db_name "$db_name"
|
ynh_app_setting_set "$app" db_name "$db_name"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e "/etc/systemd/system/$app.service" ]
|
||||||
|
then
|
||||||
|
systemctl stop "$app.service"
|
||||||
|
systemctl disable "$app.service"
|
||||||
|
yunohost service remove "$app.service"
|
||||||
|
ynh_secure_remove "$final_path/uwsgi.ini"
|
||||||
|
ynh_secure_remove "/etc/systemd/system/$app.service"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK THE PATH
|
# CHECK THE PATH
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue