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

try also keep the file config.local.user.php

This commit is contained in:
rodinux 2023-09-18 23:46:38 +02:00
parent ca062df330
commit a67f02f5b5

View file

@ -39,9 +39,16 @@ tmp_data_backup=$(mktemp -d)
rsync -a $install_dir/data/ $tmp_data_backup/
if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh4; then
ynh_replace_string --match_string="namespace Garradin;" --replace_string="namespace Paheko;" --target_file="$install_dir/config.local.user.php"
mv $install_dir/config.local.user.php $tmp_data_backup/
fi
if ynh_compare_current_package_version --comparison le --version 1.3.0~ynh8; then
ynh_replace_string --match_string="namespace Garradin;" --replace_string="namespace Paheko;" --target_file="$install_dir/config.local.user.php"
mv $install_dir/config.local.user.php $tmp_data_backup/
fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
@ -97,9 +104,6 @@ ynh_script_progression --message="Restore datas..." --weight=5
# Sync data directory backup
rsync -a $tmp_data_backup/ $install_dir/data/
if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh4; then
ynh_replace_string --match_string="namespace Garradin;" --replace_string="namespace Paheko;" --target_file="$install_dir/data/config.local.user.php"
fi
#=================================================
# FIX PERMISSIONS