1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lutim_ynh.git synced 2024-09-03 19:36:24 +02:00

Merge pull request #55 from YunoHost-Apps/patch

- Fix upgrade
- Fix linter warning
This commit is contained in:
Éric Gaspar 2020-11-23 17:41:19 +01:00 committed by GitHub
commit b11b4780f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -35,7 +35,6 @@ ynh_print_info --message="Declaring files to be backed up..."
# BACKUP THE APP MAIN DIR
#=================================================
CHECK_SIZE "$final_path"
ynh_backup --src_path="$final_path"
#=================================================

View file

@ -274,7 +274,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading $app with Carton..." --weight=4
(cd $final_path
carton install 2>&1 | tee -a "/var/log/$app/setup_carton.log")
ynh_secure_remove --file="$final_path/local"
carton install --deployment --without=mysql --without=htpasswd --without=test)
fi
#=================================================
@ -294,6 +295,12 @@ ynh_script_progression --message="Upgrading logrotate configuration..."
ynh_use_logrotate --non-append
chown $app -R /var/log/$app
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL
#=================================================
yunohost service add $app --log $final_path/log/production.log
#=================================================
# RELOAD NGINX
#=================================================