create-user: misc updates for Debian Stretch / server changes
[hcoop/scripts.git] / create-user-database
index ce65464..89eecaf 100755 (executable)
@@ -19,7 +19,7 @@ if ! test -d $PGNEWDIR; then
   mkdir -p $PGNEWDIR
   chown postgres:postgres $PGNEWDIR
   chmod 700 $PGNEWDIR
-  sudo -u postgres psql --cluster 9.1/main -c "CREATE TABLESPACE \"user_$USER\" OWNER postgres LOCATION '$PGNEWDIR'" template1
+  sudo -u postgres psql --cluster 9.6/main -c "CREATE TABLESPACE \"user_$USER\" OWNER postgres LOCATION '$PGNEWDIR'" template1
 fi
 
 # Create mysql user and databases placeholder within volume