Fix syntax error in deploy-db.sh script
This commit is contained in:
+1
-2
@@ -10,8 +10,7 @@ PVC_NAME="postgres-data"
|
|||||||
# Generate a secure random password if secret doesn't exist yet
|
# Generate a secure random password if secret doesn't exist yet
|
||||||
if ! kubectl get secret "$SECRET_NAME" -n "$NAMESPACE" >/dev/null 2>&1; then
|
if ! kubectl get secret "$SECRET_NAME" -n "$NAMESPACE" >/dev/null 2>&1; then
|
||||||
echo "==> Generating database password ..."
|
echo "==> Generating database password ..."
|
||||||
PASSWORD=*** 75d7 | base64 | head -c 32 | tr -d '
|
PASSWORD=$(openssl rand -base64 32 | tr -d '\n')
|
||||||
'
|
|
||||||
DATABASE_URL="postgres://lahuasca:$PASSWORD@postgres.$NAMESPACE.svc.cluster.local:5432/lahuasca"
|
DATABASE_URL="postgres://lahuasca:$PASSWORD@postgres.$NAMESPACE.svc.cluster.local:5432/lahuasca"
|
||||||
|
|
||||||
kubectl create secret generic "$SECRET_NAME" \
|
kubectl create secret generic "$SECRET_NAME" \
|
||||||
|
|||||||
Reference in New Issue
Block a user