use new version
This commit is contained in:
parent
8de78c1c5b
commit
f6207a102b
2 changed files with 6 additions and 2 deletions
|
@ -1,9 +1,13 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
|
||||
if [ "$DB_TYPE" == "postgres" ]; then
|
||||
FIXED_FILE=/home/wikijs/data/pgfixed
|
||||
|
||||
if [ "$DB_TYPE" == "postgres" ] && [ ! -f "$FIXED_FILE" ]; then
|
||||
# starting at 3 because the default groups and user mess things up otherwise
|
||||
psql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \
|
||||
"ALTER SEQUENCE users_id_seq RESTART WITH 3;"
|
||||
sql --host "$DB_HOST" --port "$DB_PORT" --username "$DB_USER" --dbname "$DB_NAME" --command \
|
||||
"ALTER SEQUENCE groups_id_seq RESTART WITH 3;"
|
||||
|
||||
touch "$FIXED_FILE"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue