wisski-cloud-distillery/distillery/rebuild-all.sh
Tom Wiesing b6c75a848c
Add rebuild-all.sh script
This commit adds a script called 'rebuild-all.sh' that automatically
rebuilds all instances.
2020-08-27 09:56:02 +02:00

16 lines
373 B
Bash
Executable file

#!/bin/bash
set -e
# read the lib/shared.sh and read the slug argument.
DISABLE_LOG=1
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR"
source "$DIR/lib/lib.sh"
DISABLE_LOG=0
# update all the instances
for slug in $(sql_bookkeep_list); do
log_info "=> /bin/bash $DIR/rebuild.sh '$slug'"
/bin/bash "$DIR/rebuild.sh" "$slug";
done