mirror of
https://github.com/YunoHost-Apps/moncycle_ynh.git
synced 2024-09-03 19:46:16 +02:00
Update upgrade
This commit is contained in:
parent
cc9418a9ff
commit
dab3abe26b
1 changed files with 8 additions and 11 deletions
|
@ -74,18 +74,15 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||||
then
|
# Move config.php to temp folder
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
# Can't use the --keep="config.php" option
|
||||||
# Move config.php to temp folder
|
pushd "$final_path"
|
||||||
# Can't use the --keep="config.php" option
|
ynh_exec_warn_less mv ./config.php /tmp/
|
||||||
pushd "$final_path"
|
popd
|
||||||
ynh_exec_warn_less mv ./config.php /tmp/
|
|
||||||
popd
|
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path" --full_replace
|
ynh_setup_source --dest_dir="$final_path" --full_replace
|
||||||
fi
|
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
|
|
Loading…
Add table
Reference in a new issue