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

add special directives when upgrade from version 1.2.8

This commit is contained in:
rodinux 2023-12-28 16:19:11 +01:00
parent b38485adcc
commit 1fb2d95709

View file

@ -30,9 +30,18 @@ if [ -z "${secret_key:-}" ]; then
fi
#=================================================
# ADD SPECIFIC FILE IF NEEDED
# KEEP DATA IF NEEDED
#=================================================
if ynh_app_upstream_version --manifest="1.2.8"
then
mv "$install_dir/config.local.php" "$install_dir/config.local.php.old"
mv "$install_dir/config.local.yunohost.php" "$install_dir/config.local.php"
chmod 650 "$install_dir/config.local.php"
chown $app:$app "$install_dir/config.local.php"
ynh_secure_remove "$install_dir/config.local.php.old"
ynh_secure_remove "$install_dir/config.local.user.php"
ynn_secure_remove "$install_dir/data/data"
fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE