1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/chitchatter_ynh.git synced 2024-09-03 18:15:59 +02:00
This commit is contained in:
Éric Gaspar 2023-03-12 11:26:48 +01:00
parent 7d4ae98230
commit 2116825ab9
2 changed files with 10 additions and 4 deletions

View file

@ -8,6 +8,7 @@
# nodejs version # nodejs version
nodejs_version=16 nodejs_version=16
version_commit=442f5406ec26d001798c1a2b5a5d9a05fdc77459
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -21,13 +21,18 @@ upgrade_type=$(ynh_check_app_version_changed)
if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src pushd $install_dir
ynh_setup_source --dest_dir="$install_dir" chown -R $app:www-data "$install_dir"
git config --system --add safe.directory $install_dir
ynh_exec_as $app git fetch
ynh_exec_as $app git reset --hard --quiet $version_commit
ynh_exec_as $app git pull
popd
fi fi
chmod 750 "$install_dir"
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"