Rename management from Wiretrustee to Netbird (#311)

Rename documentation and goreleaser build names

Added a migration function for when the old path exists and the new one doesn't

updated the configure.sh to generate the docker-compose with a new path only 
if no pre-existing volume with old name exists
This commit is contained in:
shatoboar
2022-05-13 14:11:21 +02:00
committed by GitHub
parent b623c255b6
commit 7d893c0238
10 changed files with 228 additions and 91 deletions

View File

@@ -22,6 +22,15 @@ then
export TURN_PASSWORD=$(openssl rand -base64 32|sed 's/=//g')
fi
# if wiretrustee-mgmt already exists, leave it, else create new mgmt with netbird
OLD_PREFIX='wiretrustee-'
if docker volume ls | grep -q "${OLD_PREFIX}mgmt"; then
VOLUME_PREFIX=$OLD_PREFIX
fi
export MGMT_VOLUMENAME="${$VOLUME_PREFIX}mgmt"
export LETSENCRYPT_VOLUMENAME="${$VOLUME_PREFIX}letsencrypt"
envsubst < docker-compose.yml.tmpl > docker-compose.yml
envsubst < management.json.tmpl > management.json
envsubst < turnserver.conf.tmpl > turnserver.conf
envsubst < turnserver.conf.tmpl > turnserver.conf