mirror of
https://github.com/YunoHost-Apps/chitchatter_ynh.git
synced 2024-09-03 18:15:59 +02:00
Fix
This commit is contained in:
parent
7d4ae98230
commit
2116825ab9
2 changed files with 10 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
# nodejs version
|
||||
nodejs_version=16
|
||||
version_commit=442f5406ec26d001798c1a2b5a5d9a05fdc77459
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
|
|
|
@ -21,13 +21,18 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
|
||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
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
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
pushd $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
|
||||
|
||||
chmod 750 "$install_dir"
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
|
|
Loading…
Reference in a new issue