mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-22 21:39:08 +02:00
[misc] Simplify enterprise bootstrap (#6869)
This commit is contained in:
@@ -234,9 +234,6 @@ init_environment() {
|
|||||||
|
|
||||||
NETBIRD_LICENSE_KEY=$(read_secret "Enter license key (input hidden)")
|
NETBIRD_LICENSE_KEY=$(read_secret "Enter license key (input hidden)")
|
||||||
|
|
||||||
GHCR_USERNAME="netbirdExtAccess1"
|
|
||||||
GHCR_TOKEN=$(read_secret "Enter GHCR token (input hidden)")
|
|
||||||
|
|
||||||
POSTGRES_USER="netbird"
|
POSTGRES_USER="netbird"
|
||||||
POSTGRES_DB="netbird"
|
POSTGRES_DB="netbird"
|
||||||
POSTGRES_PASSWORD=$(rand_secret)
|
POSTGRES_PASSWORD=$(rand_secret)
|
||||||
@@ -263,10 +260,6 @@ init_environment() {
|
|||||||
install -m 600 /dev/null config.yaml
|
install -m 600 /dev/null config.yaml
|
||||||
render_config_yaml >> config.yaml
|
render_config_yaml >> config.yaml
|
||||||
|
|
||||||
echo "Logging in to ghcr.io ..."
|
|
||||||
printf '%s' "$GHCR_TOKEN" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin
|
|
||||||
unset GHCR_TOKEN
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Pulling images ..."
|
echo "Pulling images ..."
|
||||||
$DOCKER_COMPOSE_COMMAND pull
|
$DOCKER_COMPOSE_COMMAND pull
|
||||||
|
|||||||
@@ -490,8 +490,6 @@ init_migration() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Step 1: Image swap (community → Enterprise). License key required."
|
echo "Step 1: Image swap (community → Enterprise). License key required."
|
||||||
NB_LICENSE_KEY=$(read_secret " License key")
|
NB_LICENSE_KEY=$(read_secret " License key")
|
||||||
GHCR_USERNAME="netbirdExtAccess1"
|
|
||||||
GHCR_TOKEN=$(read_secret " GHCR token (input hidden)")
|
|
||||||
|
|
||||||
# Step 2 — optional
|
# Step 2 — optional
|
||||||
echo ""
|
echo ""
|
||||||
@@ -588,11 +586,6 @@ apply_changes() {
|
|||||||
fi
|
fi
|
||||||
} >> "$ENV_FILE"
|
} >> "$ENV_FILE"
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "Logging in to ghcr.io ..."
|
|
||||||
printf '%s' "$GHCR_TOKEN" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin
|
|
||||||
unset GHCR_TOKEN
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Pulling enterprise images ..."
|
echo "Pulling enterprise images ..."
|
||||||
$DOCKER_COMPOSE_COMMAND pull
|
$DOCKER_COMPOSE_COMMAND pull
|
||||||
|
|||||||
Reference in New Issue
Block a user