different user creates database

This commit is contained in:
Tassilo - 2022-07-09 23:12:10 +02:00
parent 93e4f0bf05
commit cba92c5d30
Signed by: revol-xut
GPG Key ID: 4F56FF7759627D07

View File

@ -35,7 +35,7 @@
sudo -u ${config.services.postgresql.superUser} psql -c "ALTER ROLE dvbdump WITH PASSWORD '$(cat ${config.sops.secrets.postgres_password_dvbdump.path})'"
sudo -u ${config.services.postgresql.superUser} psql -c "ALTER ROLE telegrams WITH PASSWORD '$(cat ${config.sops.secrets.postgres_password_telegrams.path})'"
sudo -u ${config.services.postgresql.superUser} psql --dbname telegrams -c "create table r09_telegrams (
sudo -u telegrams psql --dbname telegrams -c "create table r09_telegrams (
id serial8 primary key not null,
time timestamp not null,
station UUID not null,