mirror of
https://github.com/YunoHost-Apps/actual_ynh.git
synced 2024-09-03 20:36:16 +02:00
Update upgrade
This commit is contained in:
parent
cfe94d7c20
commit
fa58560f71
1 changed files with 6 additions and 1 deletions
|
@ -28,8 +28,13 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||||
|
|
||||||
|
source_id_to_use="main"
|
||||||
|
if [[ "$release_cycle" == "edge" ]]
|
||||||
|
then
|
||||||
|
source_id_to_use="edge"
|
||||||
|
fi
|
||||||
# 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="$install_dir" --keep="config.json"
|
ynh_setup_source --dest_dir="$install_dir" --keep="config.json" --source_id="$source_id_to_use"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue