wisski-cloud-distillery/distillery/system_update.sh
Tom Wiesing 5170cc5dda
system_update.sh: Bugfix
This commit fixes a broken system_update.sh that did not properly
rebuild the resolver configuration.
2022-08-01 17:11:00 +02:00

34 lines
No EOL
897 B
Bash
Executable file

#!/bin/bash
set -e
# read the lib/shared.sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR"
source "$DIR/lib/lib.sh"
log_info "=> Rebuilding and restarting 'web' stack"
update_stack "$DEPLOY_WEB_DIR"
log_info "=> Rebuilding and restarting 'self' stack"
update_stack "$DEPLOY_SELF_DIR"
# build and start the ssh server
log_info "=> Rebuilding and restarting 'ssh' stack"
update_stack "$DEPLOY_SSH_DIR"
# build and start the triplestore
log_info "=> Rebuilding and restarting 'triplestore' stack"
update_stack "$DEPLOY_TRIPLESTORE_DIR"
# build and start the triplestore
log_info "=> Rebuilding and restarting 'sql' stack"
update_stack "$DEPLOY_SQL_DIR"
log_info " => Updating Prefix Config"
cd "$DIR"
bash update_prefix_config.sh
log_info "=> Rebuilding and restarting 'resolver' stack"
update_stack "$DEPLOY_RESOLVER_DIR"
log_info "=> System up-to-date. "