fix: add privilege grants for database user in setup script
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 7s

This commit is contained in:
2025-11-25 16:14:59 +01:00
parent 8df3f927a4
commit bbdef77e0e

View File

@@ -85,4 +85,10 @@ CREATE TABLE IF NOT EXISTS packet_log (
); );
EOF EOF
echo "[7] Grant privileges to user…"
sudo -u postgres psql -d $DB_NAME <<EOF
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO $DB_USER;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL PRIVILEGES ON TABLES TO $DB_USER;
EOF
echo "Done. PostgreSQL is ready for LAN + localhost connections." echo "Done. PostgreSQL is ready for LAN + localhost connections."