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:
parent
7c82c74c25
commit
94eaf9bb00
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue