mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-05 09:03:54 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user