mirror of
https://github.com/YunoHost-Apps/quizzes_ynh.git
synced 2024-09-03 20:16:11 +02:00
Update upgrade
This commit is contained in:
parent
47e1fb1910
commit
9c9be22635
1 changed files with 6 additions and 3 deletions
|
@ -56,10 +56,13 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=3
|
||||
|
||||
ynh_secure_remove --file="$final_path"
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
fi
|
||||
|
||||
ynh_install_composer --install_args="--ignore-platform-reqs"
|
||||
|
||||
chmod 750 "$final_path"
|
||||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
@ -92,10 +95,10 @@ ynh_add_fpm_config
|
|||
#=================================================
|
||||
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/qcm-dist.conf" --destination="$final_path/conf/qcm-dist.conf"
|
||||
ynh_add_config --template="../conf/qcm-dist.conf" --destination="$final_path/conf/qcm.php"
|
||||
|
||||
chmod 400 "$final_path/conf/qcm-dist.conf"
|
||||
chown $app:$app "$final_path/conf/qcm-dist.conf"
|
||||
chmod 400 "$final_path/conf/qcm.php"
|
||||
chown $app:$app "$final_path/conf/qcm.php"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
Loading…
Add table
Reference in a new issue