mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
add service to secure upgrade
This commit is contained in:
parent
ee5910276b
commit
2df47eb2f7
1 changed files with 2 additions and 0 deletions
|
@ -132,6 +132,8 @@ ynh_abort_if_errors
|
||||||
if [ -e "/etc/systemd/system/uwsgi-app@.service" ]
|
if [ -e "/etc/systemd/system/uwsgi-app@.service" ]
|
||||||
then
|
then
|
||||||
systemctl stop "uwsgi-app@$app"
|
systemctl stop "uwsgi-app@$app"
|
||||||
|
# if somehow the service doesn't exist, add it
|
||||||
|
yunohost service add "uwsgi-app@$app.service" --log "/var/log/uwsgi/app/$app"
|
||||||
yunohost service remove "uwsgi-app@$app.service"
|
yunohost service remove "uwsgi-app@$app.service"
|
||||||
ynh_secure_remove "/etc/systemd/system/uwsgi-app@.socket"
|
ynh_secure_remove "/etc/systemd/system/uwsgi-app@.socket"
|
||||||
ynh_secure_remove "/etc/systemd/system/uwsgi-app@.service"
|
ynh_secure_remove "/etc/systemd/system/uwsgi-app@.service"
|
||||||
|
|
Loading…
Reference in a new issue