diff --git a/btcpayserver/backup_btcpay.sh b/btcpayserver/backup_btcpay.sh index a4cf276..342a519 100755 --- a/btcpayserver/backup_btcpay.sh +++ b/btcpayserver/backup_btcpay.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e cd "$(dirname "$0")" # take the services down, create a backup archive, then pull it down. diff --git a/btcpayserver/go.sh b/btcpayserver/go.sh index c8c3631..22c5194 100755 --- a/btcpayserver/go.sh +++ b/btcpayserver/go.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -exu +set -eu cd "$(dirname "$0")" export DOCKER_HOST="ssh://ubuntu@$BTCPAY_FQDN" diff --git a/create_lxc_base.sh b/create_lxc_base.sh index 7e6b25d..972caae 100755 --- a/create_lxc_base.sh +++ b/create_lxc_base.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -exu +set -eu cd "$(dirname "$0")" ./stub_lxc_profile.sh "$BASE_IMAGE_VM_NAME" diff --git a/deploy.sh b/deploy.sh index d2a2b54..27c359b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e cd "$(dirname "$0")" LATEST_GIT_COMMIT="$(cat ../../.git/refs/heads/master)" diff --git a/deploy_vms.sh b/deploy_vms.sh index e881186..42d9244 100755 --- a/deploy_vms.sh +++ b/deploy_vms.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -exu +set -eu cd "$(dirname "$0")" diff --git a/domain_env.sh b/domain_env.sh index c2ee5fb..1917a3b 100755 --- a/domain_env.sh +++ b/domain_env.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e export NEXTCLOUD_FQDN="$NEXTCLOUD_HOSTNAME.$DOMAIN_NAME" export BTCPAY_FQDN="$BTCPAY_HOSTNAME.$DOMAIN_NAME" diff --git a/stub_lxc_profile.sh b/stub_lxc_profile.sh index d55c080..585244b 100755 --- a/stub_lxc_profile.sh +++ b/stub_lxc_profile.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -exu +set -eu cd "$(dirname "$0")" LXD_HOSTNAME="${1:-}" diff --git a/wait_for_lxc_ip.sh b/wait_for_lxc_ip.sh index 5fbbc96..94b2285 100755 --- a/wait_for_lxc_ip.sh +++ b/wait_for_lxc_ip.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e LXC_INSTANCE_NAME= diff --git a/www/generate_certs.sh b/www/generate_certs.sh index 6900552..187073c 100755 --- a/www/generate_certs.sh +++ b/www/generate_certs.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e # let's do a refresh of the certificates. Let's Encrypt will not run if it's not time. docker pull certbot/certbot:latest diff --git a/www/prepare_clams.sh b/www/prepare_clams.sh index 480dc55..df443dc 100755 --- a/www/prepare_clams.sh +++ b/www/prepare_clams.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e cd "$(dirname "$0")" # deploy clams wallet. diff --git a/www/stub/nginx_config.sh b/www/stub/nginx_config.sh index 8a53273..974f6ad 100755 --- a/www/stub/nginx_config.sh +++ b/www/stub/nginx_config.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e cd "$(dirname "$0")" # here's the NGINX config. We support ghost and nextcloud. diff --git a/www/stub/nginx_yml.sh b/www/stub/nginx_yml.sh index e149ee9..3655372 100755 --- a/www/stub/nginx_yml.sh +++ b/www/stub/nginx_yml.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e cd "$(dirname "$0")" #https://github.com/fiatjaf/expensive-relay diff --git a/www/stub/nostr_yml.sh b/www/stub/nostr_yml.sh index 6162fb1..c9cedb2 100755 --- a/www/stub/nostr_yml.sh +++ b/www/stub/nostr_yml.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -ex +set -e cd "$(dirname "$0")" docker pull "$NOSTR_RELAY_IMAGE"