* Previously, a name with a '-' would break things
* Usernames containing '"' are invalid anyway so we should be bulletproof
if ! test -d $PGDIR; then
mkdir -p $PGDIR
chown postgres:postgres $PGDIR
if ! test -d $PGDIR; then
mkdir -p $PGDIR
chown postgres:postgres $PGDIR
- sudo -u postgres psql -c "CREATE TABLESPACE user_$USER OWNER postgres LOCATION '$PGDIR'" template1
+ sudo -u postgres psql -c "CREATE TABLESPACE \"user_$USER\" OWNER postgres LOCATION '$PGDIR'" template1
fi
# Create mysql user and databases placeholder within volume
fi
# Create mysql user and databases placeholder within volume