1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00
This commit is contained in:
Kay0u 2021-06-18 10:58:09 +02:00
parent a90e80de4a
commit 01e29b5126
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -175,7 +175,7 @@ ynh_permission_update --permission="main" --add="visitors"
ynh_backup_if_checksum_is_different --file="$final_path/config/connect.php" ynh_backup_if_checksum_is_different --file="$final_path/config/connect.php"
ynh_secure_remove --file="$final_path/config/connect.php" mv $final_path/config/connect.php $final_path/config/connect.php.ynh_bkp
# Installation with curl # Installation with curl
ynh_script_progression --message="Finalizing installation..." ynh_script_progression --message="Finalizing installation..."
@ -220,6 +220,12 @@ cp ../conf/mes_options.php $final_path/config/mes_options.php
# STORE THE CONFIG FILE CHECKSUM # STORE THE CONFIG FILE CHECKSUM
#================================================= #=================================================
if [ ! -f $final_path/config/connect.php ]; then
mv $final_path/config/connect.php.ynh_bkp $final_path/config/connect.php
else
ynh_secure_remove --file="$final_path/config/connect.php.ynh_bkp"
fi
ynh_store_file_checksum --file="$final_path/config/connect.php" ynh_store_file_checksum --file="$final_path/config/connect.php"
#================================================= #=================================================