1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/baikal_ynh.git synced 2024-09-03 18:16:11 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2022-04-03 12:50:26 +02:00
parent 89be38e180
commit 1fefebb0ea
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -165,20 +165,20 @@ then
#================================================= #=================================================
# UPGRADE BAIKAL # UPGRADE BAIKAL
#================================================= #=================================================
ynh_script_progression --message="Upgrading Baïkal..." # ynh_script_progression --message="Upgrading Baïkal..."
# Run Baikal upgrade # # Run Baikal upgrade
php"${phpversion}" "${final_path}/bin/upgrade.sh" # php"${phpversion}" "${final_path}/bin/upgrade.sh"
# Cleanup old baikal-admin sessions # # Cleanup old baikal-admin sessions
# since we may have changed owner of the session file # # since we may have changed owner of the session file
grep --files-with-matches --recursive "CSRF_TOKEN|s:" /var/lib/php/sessions | xargs rm -f # grep --files-with-matches --recursive "CSRF_TOKEN|s:" /var/lib/php/sessions | xargs rm -f
# Store the config file checksum into the app settings # # Store the config file checksum into the app settings
ynh_store_file_checksum --file="$bk_conf" # ynh_store_file_checksum --file="$bk_conf"
# Remove checksums of old files # # Remove checksums of old files
ynh_delete_file_checksum --file="${final_path}/Specific/config.php" # ynh_delete_file_checksum --file="${final_path}/Specific/config.php"
ynh_delete_file_checksum --file="${final_path}/Specific/config.system.php" # ynh_delete_file_checksum --file="${final_path}/Specific/config.system.php"
fi fi
#================================================= #=================================================