3-startdb.sh (268B)
1 #!/bin/bash 2 set -evux 3 4 export PGPORT=5432 5 sudo -u postgres /usr/lib/postgresql/17/bin/pg_ctl \ 6 start -D /etc/postgresql/17/main -o "-h localhost -p $PGPORT" 7 sudo -u postgres createuser -p $PGPORT root -s -w 8 sudo -u postgres createdb -p $PGPORT -O root talercheck 9