diff --git a/Updating.md b/Updating.md index 8f01540..1d4c570 100644 --- a/Updating.md +++ b/Updating.md @@ -8,7 +8,7 @@ $ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD) $ git pull $ latestVersion=$(git describe --tags --abbrev=0) $ git checkout $latestVersion -$ for i in `git rev-list --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 $ shards update && shards install $ crystal build src/invidious.cr --release $ exit @@ -21,7 +21,7 @@ $ sudo -i -u invidious $ cd invidious $ currentVersion=$(git rev-list --max-count=1 --abbrev-commit HEAD) $ git pull -$ for i in `git rev-list --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 $ shards update && shards install $ crystal build src/invidious.cr --release $ exit