mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
comment condition for older versions
This commit is contained in:
parent
9485c533ee
commit
b360de7a96
1 changed files with 6 additions and 10 deletions
|
@ -63,18 +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
|
# if ynh_compare_current_package_version --comparison lt --version 1.3.1~ynh1
|
||||||
then
|
# 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"
|
||||||
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
|
# chown $app:$app "$install_dir/config.local.php"
|
||||||
chmod 650 "$install_dir/config.local.php"
|
# fi
|
||||||
chown $app:$app "$install_dir/config.local.php"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f "$data_dir/data/config.local.user.php" ]; then
|
if [ ! -f "$data_dir/data/config.local.user.php" ]; then
|
||||||
ynh_script_progression --message="Updating a configuration file..." --weight=5
|
|
||||||
|
|
||||||
ynh_add_config --template="config.local.user.php" --destination="$data_dir/config.local.php"
|
ynh_add_config --template="config.local.user.php" --destination="$data_dir/config.local.php"
|
||||||
chmod 650 "$data_dir/config.local.php"
|
chmod 650 "$data_dir/config.local.php"
|
||||||
chown $app:$app "$data_dir/config.local.php"
|
chown $app:$app "$data_dir/config.local.php"
|
||||||
|
|
Loading…
Add table
Reference in a new issue