mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
Fix
This commit is contained in:
parent
9cd8787c9d
commit
ab26dca871
2 changed files with 6 additions and 6 deletions
|
@ -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
|
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from GitHub
|
# 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"
|
pushd "$final_path"
|
||||||
git reset --hard --quiet $version_commit
|
ynh_exec_as $app git reset --hard --quiet $version_commit
|
||||||
popd
|
popd
|
||||||
|
|
||||||
for i in $final_path/config/sql/*.sql ; do
|
for i in $final_path/config/sql/*.sql ; do
|
||||||
|
|
|
@ -113,10 +113,10 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
ynh_script_progression --message="Upgrading source files..." --weight=5
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
git fetch
|
ynh_exec_as $app git fetch
|
||||||
#git checkout master
|
#git checkout master
|
||||||
git reset --hard --quiet $version_commit
|
ynh_exec_as $app git reset --hard --quiet $version_commit
|
||||||
git pull
|
ynh_exec_as $app git pull
|
||||||
ynh_exec_warn_less shards install --production
|
ynh_exec_warn_less shards install --production
|
||||||
ynh_exec_warn_less crystal build $final_path/src/invidious.cr --release
|
ynh_exec_warn_less crystal build $final_path/src/invidious.cr --release
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Add table
Reference in a new issue