4725bd8463bf8b41082931774c3f757c18981339
3 # DO NOT EXECUTE DIRECTLY
4 # This is only to be executed by create-user
7 DBPATH
=/srv
/databases
/$PATHBITS
11 # Create postgres user and tablespace placeholder within volume
12 if ! test -d $PGDIR; then
14 chown postgres
:postgres
$PGDIR
17 sudo
-u postgres psql
-c "CREATE TABLESPACE user_$USER OWNER postgres LOCATION '$PGDIR'" template1
20 # Create mysql user and databases placeholder within volume
22 chown mysql
:mysql
$MYSQLDIR