1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/question2answer_ynh.git synced 2024-09-03 20:16:07 +02:00

Adding service integration step during upgrade

This commit is contained in:
yalh76 2020-06-04 16:52:38 +02:00
parent 4a44539d1d
commit 67437ba64d
2 changed files with 8 additions and 0 deletions

View file

@ -299,6 +299,7 @@ ynh_script_progression --message="Integrating service in YunoHost..." --time --w
### - You can remove these files in conf/.
### - Remove the section "REMOVE SERVICE INTEGRATION IN YUNOHOST" in the remove script
### - As well as the section "INTEGRATE SERVICE IN YUNOHOST" in the restore script
### - And the section "INTEGRATE SERVICE IN YUNOHOST" in the upgrade script
yunohost service add $app --description "A short description of the app" --log "/var/log/$app/$app.log"

View file

@ -204,6 +204,13 @@ then
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/"
fi
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --time --weight=1
yunohost service add $app --description "A short description of the app" --log "/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE
#=================================================