1
0
Fork 0
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:
ericgaspar 2021-10-04 13:32:25 +02:00
parent 2dadc2262e
commit bbc2cb0969
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -92,12 +92,12 @@ 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
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 -f $latestVersion git checkout -f $version_commit #$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 #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
popd popd