Miniflux: Fix escaping for PG_PASS

This commit is contained in:
Benoit 2025-02-14 20:50:29 +09:00
parent f925b71673
commit 662b8e0100
Signed by: Benoit
SSH key fingerprint: SHA256:kFsX94Kq6z/6CY0dX+7/FpAeJC0QlMhJVY+B7NYrOmA

View file

@ -31,7 +31,7 @@ PG_PASS=$(openssl rand -hex 32)
incus file push <(sed "s/SED_PG_PASS/$PG_PASS/" "$WORKSPACE"/miniflux.conf) \
"$CNAME"/etc/miniflux.conf
set -x
incus exec "$CNAME" -- bash -c 'sudo -u postgres psql -c "CREATE USER miniflux WITH PASSWORD '"'"'${PG_PASS}'"'"';"'
incus exec "$CNAME" -- bash -c "sudo -u postgres psql -c \"CREATE USER miniflux WITH PASSWORD '${PG_PASS}';\""
incus exec "$CNAME" -- bash -c 'sudo -u postgres psql -c "CREATE DATABASE miniflux OWNER miniflux;"'
incus exec "$CNAME" -- systemctl enable miniflux