no longer needed with b4cb8249f5
This commit is contained in:
parent
eddeae9dd1
commit
c104e15c36
@ -1,13 +0,0 @@
|
||||
#!/usr/bin/with-contenv sh
|
||||
|
||||
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…
Reference in New Issue
Block a user