Ver Fonte

fix init script

Daniel Sheffield há 18 horas atrás
pai
commit
03b7b9339e
1 ficheiros alterados com 1 adições e 0 exclusões
  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;