1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freescout_ynh.git synced 2024-09-03 18:36:23 +02:00
This commit is contained in:
Éric Gaspar 2024-06-10 09:03:17 +02:00
parent 5e7469b469
commit 406013246e
2 changed files with 3 additions and 17 deletions

View file

@ -27,16 +27,8 @@ ynh_backup --src_path="$install_dir"
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# BACKUP THE PHP-FPM CONFIGURATION
#=================================================
ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# BACKUP VARIOUS FILES
#=================================================
ynh_backup --src_path="/etc/cron.d/$app"
#=================================================

View file

@ -13,22 +13,16 @@ email=$(ynh_user_get_info --username=$admin --key=mail)
firstname=$(ynh_user_get_info --username=$admin --key=firstname)
lastname=$(ynh_user_get_info --username=$admin --key=lastname)
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD...)
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1
ynh_secure_remove --file="/$install_dir/vendor"
ynh_setup_source --dest_dir="$install_dir" # --full_replace=1 --keep='.env'
fi
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"