1
0
Fork 0
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:
Andrew Webberley 2024-06-08 14:07:14 -07:00 committed by GitHub
parent cfe94d7c20
commit fa58560f71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"