toolkit/func/core/pkg_postgresql/11-create-user.sh

4 lines
133 B
Bash
Executable file

#!/bin/bash
r_log "postgresql" "Creating user"
su - postgres -c 'createuser -S -R -D testuser' > /dev/null 2>&1
r_checkExitStatus $?