mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
Update upgrade
This commit is contained in:
parent
14719bb503
commit
b0aa598b01
1 changed files with 2 additions and 2 deletions
|
@ -93,10 +93,10 @@ then
|
||||||
|
|
||||||
pushd $final_path
|
pushd $final_path
|
||||||
currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
|
currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD)
|
||||||
git reset --hard --quiet
|
#git reset --hard --quiet
|
||||||
git pull
|
git pull
|
||||||
latestVersion=$(git describe --tags --abbrev=0)
|
latestVersion=$(git describe --tags --abbrev=0)
|
||||||
git checkout $latestVersion #-f
|
git checkout -f $latestVersion #-f
|
||||||
for i in `git rev-list --reverse --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
for i in `git rev-list --reverse --abbrev-commit $currentVersion..HEAD` ; do file=./config/migrate-scripts/migrate-db-$i.sh ; [ -f $file ] && $file ; done
|
||||||
ynh_exec_warn_less shards update && shards install
|
ynh_exec_warn_less shards update && shards install
|
||||||
ynh_exec_warn_less crystal build $final_path/src/invidious.cr --release
|
ynh_exec_warn_less crystal build $final_path/src/invidious.cr --release
|
||||||
|
|
Loading…
Add table
Reference in a new issue