1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invidious_ynh.git synced 2024-09-03 19:15:55 +02:00
This commit is contained in:
Éric Gaspar 2023-02-07 22:57:01 +01:00
parent 9cd8787c9d
commit ab26dca871
2 changed files with 6 additions and 6 deletions

View file

@ -108,10 +108,10 @@ ynh_script_progression --message="Setting up source files..." --weight=4
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from GitHub
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
pushd "$final_path"
git reset --hard --quiet $version_commit
ynh_exec_as $app git reset --hard --quiet $version_commit
popd
for i in $final_path/config/sql/*.sql ; do

View file

@ -113,10 +113,10 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=5
pushd $final_path
git fetch
#git checkout master
git reset --hard --quiet $version_commit
git pull
ynh_exec_as $app git fetch
#git checkout master
ynh_exec_as $app git reset --hard --quiet $version_commit
ynh_exec_as $app git pull
ynh_exec_warn_less shards install --production
ynh_exec_warn_less crystal build $final_path/src/invidious.cr --release
popd