diff --git a/scripts/upgrade b/scripts/upgrade index bbeb681..94a8e6e 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -76,13 +76,6 @@ ynh_use_logrotate --specific_user=$app touch /var/log/$app/$app.log chown -R $app:www-data /var/log/$app/ -#================================================= -# INTEGRATE SERVICE IN YUNOHOST -#================================================= -ynh_script_progression --message="Integrating service in YunoHost..." - -yunohost service add $app --log="/var/log/$app/$app.log" - #================================================= # RECONFIGURE THE APP (UPDATE CONF, APPLY MIGRATIONS...) #================================================= @@ -95,6 +88,13 @@ ynh_add_config --template="../conf/.env" --destination="$install_dir/.env" chmod 600 "$install_dir/.env" chown $app:$app "$install_dir/.env" +#================================================= +# INTEGRATE SERVICE IN YUNOHOST +#================================================= +ynh_script_progression --message="Integrating service in YunoHost..." + +yunohost service add $app --log="/var/log/$app/$app.log" + #================================================= # START SYSTEMD SERVICE #=================================================