1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nullboard_ynh.git synced 2024-09-03 19:46:08 +02:00

Update upgrade

This commit is contained in:
Éric Gaspar 2024-06-14 22:02:10 +02:00
parent 3626acda25
commit 9e3d1c870b

View file

@ -17,14 +17,10 @@ upgrade_type=$(ynh_check_app_version_changed)
#================================================= #=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================
ynh_script_progression --message="Upgrading source files..." --weight=4
if [ "$upgrade_type" == "UPGRADE_APP" ] # Download, check integrity, uncompress and patch the source from app.src
then ynh_setup_source --dest_dir="$install_dir"
ynh_script_progression --message="Upgrading source files..." --weight=4
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
fi
chmod -R o-rwx "$install_dir" chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"