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

Update upgrade

add exception if version older than 1.3.1~ynh1
This commit is contained in:
Robles Rodolphe 2023-12-17 23:14:46 +01:00 committed by GitHub
parent 7c82c74c25
commit 94eaf9bb00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,6 +63,14 @@ chmod 644 "/etc/cron.d/$app"
# SPECIFIC UPGRADE # SPECIFIC UPGRADE
#================================================= #=================================================
if ynh_compare_current_package_version --comparison lt --version 1.3.1~ynh1
then
ynh_script_progression --message="Updating a configuration file..." --weight=5
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
chmod 650 "$install_dir/config.local.php"
chown $app:$app "$install_dir/config.local.php"
fi
#================================================= #=================================================
# END OF SCRIPT # END OF SCRIPT