mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-13 03:23:34 +00:00
Use DDL for creating users since the createuser command probably
isn't around on non-Debian systems.
This commit is contained in:
parent
577f627661
commit
7d6d623559
@ -38,7 +38,7 @@ db_users() {
|
||||
|
||||
create_db_user() {
|
||||
if ! db_users | grep "^${1}$" >/dev/null ; then
|
||||
createuser --no-superuser --no-createdb --no-createrole "${1}"
|
||||
psql -qAt template1 -c "CREATE USER ${1} NOCREATEDB NOCREATEROLE;"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user