1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2023-10-09 21:02:59 +02:00
parent 07a1fb5279
commit 7cab77b43a

View file

@ -42,7 +42,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir" --keep="config.local.php" #--full_replace=1
ynh_setup_source --dest_dir="$install_dir" #--keep="config.local.php"
fi
chmod -R o-rwx "$install_dir"
@ -68,13 +68,17 @@ chmod 644 "/etc/cron.d/$app"
#=================================================
# UPDATE A CONFIG FILE
#=================================================
#ynh_script_progression --message="Updating a configuration file..." --weight=5
ynh_script_progression --message="Updating a configuration file..." --weight=5
# remove old configuration files
ynh_secure_remove --file="$install_dir/config.local.user.php"
ynh_secure_remove --file="$install_dir/config.local.yunohost.php"
# Install configuration files
#ynh_add_config --template="../conf/config.local.php" --destination="$install_dir/config.local.php"
ynh_add_config --template="../conf/config.local.php" --destination="$install_dir/config.local.php"
#chmod 650 "$install_dir/config.local.php"
#chown $app:$app "$install_dir/config.local.php"
chmod 650 "$install_dir/config.local.php"
chown $app:$app "$install_dir/config.local.php"
#=================================================
# END OF SCRIPT