From 5cc7fdea1369bbdb38052a74214ce5945a42aa61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 14 Feb 2023 19:58:29 +0100 Subject: [PATCH] Update install --- scripts/install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index ae60515..ac4a58b 100644 --- a/scripts/install +++ b/scripts/install @@ -108,15 +108,17 @@ ynh_script_progression --message="Setting up source files..." --weight=4 ynh_app_setting_set --app=$app --key=final_path --value=$final_path mkdir -p "$final_path" -chown -R $app "$final_path" +chown -R $app:www-data "$final_path" # Download, check integrity, uncompress and patch the source from GitHub -ynh_exec_as $app git clone https://github.com/iv-org/invidious "$final_path" --quiet +#ynh_exec_as $app +git clone https://github.com/iv-org/invidious "$final_path" --quiet -ynh_exec_as $app git config --global --add safe.directory +#ynh_exec_as $app +git config --global --add safe.directory pushd "$final_path" - ynh_exec_as $app git reset --hard --quiet $version_commit + git reset --hard --quiet $version_commit popd for i in $final_path/config/sql/*.sql ; do