seguimos con postgress
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 16s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 16s
This commit is contained in:
@@ -59,9 +59,9 @@ jobs:
|
|||||||
# Asegurar autenticación md5 y que la contraseña coincide con la env (cura volúmenes viejos)
|
# Asegurar autenticación md5 y que la contraseña coincide con la env (cura volúmenes viejos)
|
||||||
echo "🔐 Sincronizando autenticación PostgreSQL (md5 + password)..."
|
echo "🔐 Sincronizando autenticación PostgreSQL (md5 + password)..."
|
||||||
ESCAPED_PASSWORD=${POSTGRES_PASSWORD//\'/\'\"\'\"\'}
|
ESCAPED_PASSWORD=${POSTGRES_PASSWORD//\'/\'\"\'\"\'}
|
||||||
docker exec -u postgres $APP_NAME-postgres psql -d $POSTGRES_DB -c "ALTER SYSTEM SET password_encryption = 'md5';"
|
docker exec -e PGPASSWORD="$POSTGRES_PASSWORD" $APP_NAME-postgres psql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "ALTER SYSTEM SET password_encryption = 'md5';"
|
||||||
docker exec -u postgres $APP_NAME-postgres psql -d $POSTGRES_DB -c "ALTER ROLE \"$POSTGRES_USER\" WITH PASSWORD '${ESCAPED_PASSWORD}';"
|
docker exec -e PGPASSWORD="$POSTGRES_PASSWORD" $APP_NAME-postgres psql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "ALTER ROLE \"$POSTGRES_USER\" WITH PASSWORD '${ESCAPED_PASSWORD}';"
|
||||||
docker exec -u postgres $APP_NAME-postgres psql -d $POSTGRES_DB -c "SELECT pg_reload_conf();"
|
docker exec -e PGPASSWORD="$POSTGRES_PASSWORD" $APP_NAME-postgres psql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT pg_reload_conf();"
|
||||||
|
|
||||||
# Ahora sí levantar la app
|
# Ahora sí levantar la app
|
||||||
docker compose --project-name $APP_NAME up -d --remove-orphans --wait
|
docker compose --project-name $APP_NAME up -d --remove-orphans --wait
|
||||||
|
|||||||
Reference in New Issue
Block a user