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

install: attempt to fix issues with git dubious ownership

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

View file

@ -69,13 +69,14 @@ ynh_script_progression --message="Setting up source files..." --weight=4
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
git config --system --add safe.directory $final_path
# Note: We use git instead of ynh_setup_source, cause this repo use submodules
git clone https://github.com/zamentur/libreto.git "$final_path" --quiet
chown -R $app:www-data "$final_path"
pushd "$final_path"
git checkout $COMMIT --quiet
git submodule update --init --recursive --quiet
ynh_exec_as $app git checkout $COMMIT --quiet
ynh_exec_as $app git submodule update --init --recursive --quiet
popd
chmod 750 "$final_path"