mirror of
https://github.com/YunoHost-Apps/freescout_ynh.git
synced 2024-09-03 18:36:23 +02:00
cleaning
This commit is contained in:
parent
5e7469b469
commit
406013246e
2 changed files with 3 additions and 17 deletions
|
@ -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"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
ynh_secure_remove --file="/$install_dir/vendor"
|
||||
|
||||
ynh_secure_remove --file="/$install_dir/vendor"
|
||||
|
||||
ynh_setup_source --dest_dir="$install_dir" # --full_replace=1 --keep='.env'
|
||||
fi
|
||||
ynh_setup_source --dest_dir="$install_dir" # --full_replace=1 --keep='.env'
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue