mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
fix #22
This commit is contained in:
parent
a90e80de4a
commit
01e29b5126
1 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue