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:
parent
b38485adcc
commit
1fb2d95709
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue