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:
parent
65da2525e2
commit
69af8ddb9f
1 changed files with 1 additions and 1 deletions
|
@ -109,6 +109,7 @@ yunohost app addaccess $app -u $admin
|
|||
# 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"
|
||||
chmod 644 $final_path/config/config.php
|
||||
|
||||
|
@ -116,7 +117,6 @@ chmod 644 $final_path/config/config.php
|
|||
# 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.
|
||||
ynh_store_file_checksum --file="$final_path/config/config.php"
|
||||
|
||||
|
|
Loading…
Reference in a new issue