From 10cd68bd4b863755eda380f928f529ad9f2766ab Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 3 Oct 2021 16:20:47 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 69cf706..f599d55 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -94,8 +94,9 @@ then pushd $final_path currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD) git pull + #git reset --hard latestVersion=$(git describe --tags --abbrev=0) - git checkout $latestVersion + git checkout -f $latestVersion 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 crystal build $final_path/src/invidious.cr --release