1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invidious_ynh.git synced 2024-09-03 19:15:55 +02:00

Update install

This commit is contained in:
Éric Gaspar 2023-02-14 19:58:29 +01:00
parent 7da4c6fd75
commit 5cc7fdea13

View file

@ -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