Browse Source

fix init script

Daniel Sheffield 22 hours ago
parent
commit
03b7b9339e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      init.sh

+ 1 - 0
init.sh

@@ -8,6 +8,7 @@ SU=$(which doas)
     doas -u postgres psql -d timesheet -c "SELECT 1" || doas -u postgres psql -d postgres <<EOF
 CREATE DATABASE timesheet;
 ALTER DATABASE timesheet OWNER TO das;
+GRANT CONNECT ON DATABASE timesheet TO postgres;
 \c timesheet
 CREATE ROLE das LOGIN;
 GRANT ALL ON SCHEMA public TO das;