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

backup config before upgrade

This commit is contained in:
yalh76 2019-06-01 07:14:07 +02:00
parent 65da2525e2
commit 69af8ddb9f

View file

@ -109,6 +109,7 @@ yunohost app addaccess $app -u $admin
# MODIFY A CONFIG FILE # MODIFY A CONFIG FILE
#================================================= #=================================================
ynh_backup_if_checksum_is_different --file="$final_path/config/config.php"
cp -f "../conf/config.php.example" "$final_path/config/config.php" cp -f "../conf/config.php.example" "$final_path/config/config.php"
chmod 644 $final_path/config/config.php chmod 644 $final_path/config/config.php
@ -116,7 +117,6 @@ chmod 644 $final_path/config/config.php
# STORE THE CONFIG FILE CHECKSUM # STORE THE CONFIG FILE CHECKSUM
#================================================= #=================================================
ynh_backup_if_checksum_is_different --file="$final_path/config/config.php"
# Recalculate and store the checksum of the file for the next upgrade. # Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum --file="$final_path/config/config.php" ynh_store_file_checksum --file="$final_path/config/config.php"