You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dotCMS/src/main/docker/original/ROOT/srv/10-import-env.sh
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@
4
4
## Drops the contents of the dotCMS database in preperation for a new import (only if requested)
5
5
drop_db_tables () {
6
6
echo"- DOT_IMPORT_DROP_DB - attempting to drop db schema"
7
-
psql -h "${DB_HOST}" -d "${DB_NAME}" -U "${DB_USERNAME}" -c "DROP SCHEMA public CASCADE;CREATE SCHEMA public;GRANT ALL ON SCHEMA public TO public;"
7
+
psql -h "${DB_HOST}" -p "${DB_PORT}" -d "${DB_NAME}" -U "${DB_USERNAME}" -c "DROP SCHEMA public CASCADE;CREATE SCHEMA public;GRANT ALL ON SCHEMA public TO public;"
8
8
}
9
9
10
10
## This checks active connections to the dotCMS database - we can only proceed if there are no connections
0 commit comments