1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreto_ynh.git synced 2024-09-03 19:36:14 +02:00

upgrade: attempt to fix issues with git dubious ownership

This commit is contained in:
Alexandre Aubin 2023-07-04 00:27:13 +02:00 committed by GitHub
parent a0a6f19285
commit ff1981efbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,14 +75,14 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=5
git config --system --add safe.directory $final_path
chown -R $app:www-data "$final_path"
# Download, check integrity, uncompress and patch the source from app.src
pushd "$final_path"
git checkout master
git pull --quiet
git checkout $COMMIT --quiet
git submodule update --init --recursive --quiet
ynh_exec_as $app git checkout master
ynh_exec_as $app git pull --quiet
ynh_exec_as $app git checkout $COMMIT --quiet
ynh_exec_as $app git submodule update --init --recursive --quiet
popd
fi