1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mybb_ynh.git synced 2024-09-03 19:46:07 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-09-04 07:34:41 +02:00
parent 705e17bcdf
commit 7c66bf8aa1

View file

@ -72,10 +72,10 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/inc/config.php"
#This remoses the lock to do the post upgrade process.
ynh_secure_remove --file="$final_path/install/lock"
#ynh_secure_remove --file="$final_path/install/lock"
fi
chmod 750 "$final_path"
@ -85,12 +85,12 @@ chown -R $app:www-data "$final_path"
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
# ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config.php" --destination="$final_path/inc/config.php"
# ynh_add_config --template="../conf/config.php" --destination="$final_path/inc/config.php"
chmod 666 "$final_path/inc/config.php"
chown $app:$app "$final_path/inc/config.php"
# chmod 666 "$final_path/inc/config.php"
# chown $app:$app "$final_path/inc/config.php"
#=================================================
# NGINX CONFIGURATION