fix: update PostgreSQL user command in security script

- Changed the PostgreSQL user command in the security script to use the 'postgres' user instead of 'dokploy' for password updates, ensuring proper permissions during execution.
This commit is contained in:
Mauricio Siu
2026-01-21 16:03:52 +01:00
parent ade342a559
commit b542257893

View File

@@ -75,8 +75,8 @@ echo "🔄 Updating database..."
POSTGRES_CONTAINER=$(docker ps --filter "name=dokploy-postgres" --format "{{.ID}}" | head -n1)
if [ -n "$POSTGRES_CONTAINER" ]; then
docker exec "$POSTGRES_CONTAINER" psql -U dokploy -d dokploy \
-c "ALTER USER dokploy WITH PASSWORD '${NEW_PASSWORD}';"
docker exec "$POSTGRES_CONTAINER" psql -U postgres \
-c "ALTER USER dokploy WITH PASSWORD '${NEW_PASSWORD}';"
fi
# Update Postgres service to use Docker Secret