mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
correct varaible for YNH_APP_CURRENT_VERSION
This commit is contained in:
parent
dc90c24f60
commit
95e251271c
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ find "$install_dir/data" -type f -exec chmod 660 {} +
|
||||||
chmod 440 "$install_dir/config.local.php"
|
chmod 440 "$install_dir/config.local.php"
|
||||||
chmod 440 "$install_dir/config.local.yunohost.php"
|
chmod 440 "$install_dir/config.local.yunohost.php"
|
||||||
|
|
||||||
if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh4; then
|
if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh1; then
|
||||||
chmod 660 "$install_dir/config.local.user.php"
|
chmod 660 "$install_dir/config.local.user.php"
|
||||||
else
|
else
|
||||||
chmod 660 "$install_dir/data/config.local.user.php"
|
chmod 660 "$install_dir/data/config.local.user.php"
|
||||||
|
|
|
@ -39,7 +39,7 @@ ynh_script_progression --message="Backup of the DB in temporary file...." --weig
|
||||||
tmp_data_backup=$(mktemp -d)
|
tmp_data_backup=$(mktemp -d)
|
||||||
rsync -a $install_dir/data/ $tmp_data_backup/
|
rsync -a $install_dir/data/ $tmp_data_backup/
|
||||||
|
|
||||||
if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh4; then
|
if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh1; then
|
||||||
mv $install_dir/config.local.user.php $tmp_data_backup/
|
mv $install_dir/config.local.user.php $tmp_data_backup/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue