1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/terraforming-mars_ynh.git synced 2024-09-03 20:36:05 +02:00

Update upgrade

This commit is contained in:
Thomas 2023-11-03 11:22:27 +01:00 committed by GitHub
parent b262915312
commit ab5a75506e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,13 +76,6 @@ ynh_use_logrotate --specific_user=$app
touch /var/log/$app/$app.log touch /var/log/$app/$app.log
chown -R $app:www-data /var/log/$app/ 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...) # 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" chmod 600 "$install_dir/.env"
chown $app:$app "$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 # START SYSTEMD SERVICE
#================================================= #=================================================