mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
Update upgrade
try fix
This commit is contained in:
parent
68e00d39be
commit
72283326a6
1 changed files with 5 additions and 3 deletions
|
@ -38,7 +38,7 @@ then
|
|||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite squelettes data skel-dist config.local.user.php" --full_replace=1
|
||||
ynh_setup_source --dest_dir="$install_dir" --keep="association.sqlite data skel-dist config.local.user.php" --full_replace=1
|
||||
fi
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
|
@ -71,11 +71,13 @@ if ynh_compare_current_package_version --comparison lt --version 1.1.15~ynh1; th
|
|||
chmod 750 "$install_dir/config.local.user.php"
|
||||
ynh_add_config --template="config.local.user.php" --destination="$install_dir/config.local.user.php"
|
||||
fi
|
||||
if ynh_compare_current_package_version --comparison ge --version 1.2.11~ynh2; then
|
||||
if ynh_compare_current_package_version --comparison le --version 1.2.11~ynh3; then
|
||||
ynh_replace_string --match_string="namespace Garradin;" --replace_string="namespace Paheko;" --target_file="$install_dir/config.local.user.php"
|
||||
fi
|
||||
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
|
||||
|
||||
# NOTE: Don't overwrite config.local.user.php
|
||||
ynh_add_config --template="config.local.php" --destination="$install_dir/config.local.php"
|
||||
ynh_add_config --template="config.local.yunohost.php" --destination="$install_dir/config.local.yunohost.php"
|
||||
|
||||
# Permissions on files and directories
|
||||
chmod -R o-rwx "$install_dir"
|
||||
|
|
Loading…
Add table
Reference in a new issue