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:
parent
a0a6f19285
commit
ff1981efbe
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue