1
1
Fork 1

Fix mac address defaults.

This commit is contained in:
Derek Smith 2023-12-17 16:51:21 -05:00
parent 7abf79e0a7
commit 5dd4de442d
Signed by: farscapian
GPG Key ID: B443E530A14E1C90
1 changed files with 18 additions and 13 deletions

View File

@ -17,6 +17,10 @@ SKIP_WWW_SERVER=false
SKIP_LNPLAY_SERVER=false
BACKUP_WWW_APPS=true
WWW_SERVER_MAC_ADDRESS=
BTCPAY_SERVER_MAC_ADDRESS=
LNPLAY_SERVER_MAC_ADDRESS=
# grab any modifications from the command line.
for i in "$@"; do
case $i in
@ -43,19 +47,6 @@ for i in "$@"; do
esac
done
SERVERS=
if [ "$SKIP_BTCPAY_SERVER" = false ]; then
SERVERS="btcpayserver"
fi
if [ "$SKIP_WWW_SERVER" = false ]; then
SERVERS="www $SERVERS"
fi
if [ "$SKIP_LNPLAY_SERVER" = false ]; then
SERVERS="lnplayserver $SERVERS"
fi
. ./deployment_defaults.sh
. ./remote_env.sh
@ -71,6 +62,20 @@ source ./project/domain_env.sh
source ./domain_list.sh
SERVERS=
if [ "$SKIP_BTCPAY_SERVER" = false ] && [ -n "$WWW_SERVER_MAC_ADDRESS" ]; then
SERVERS="btcpayserver"
fi
if [ "$SKIP_WWW_SERVER" = false ] && [ -n "$BTCPAY_SERVER_MAC_ADDRESS" ]; then
SERVERS="www $SERVERS"
fi
if [ "$SKIP_LNPLAY_SERVER" = false ] && [ -n "$LNPLAY_SERVER_MAC_ADDRESS" ]; then
SERVERS="lnplayserver $SERVERS"
fi
for VIRTUAL_MACHINE in $SERVERS; do
INCUS_VM_NAME="$VIRTUAL_MACHINE-${PRIMARY_DOMAIN//./-}"