From c104e15c368fd4cb5fde8fa40143adea4ec987a2 Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Wed, 6 Nov 2019 12:13:01 +0100 Subject: [PATCH] no longer needed with https://github.com/Requarks/wiki/commit/b4cb8249f52e7d4fd2a494cd7d455ed4b18834d3 --- rootfs/etc/cont-init.d/02-fix-postgre-schema | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 rootfs/etc/cont-init.d/02-fix-postgre-schema diff --git a/rootfs/etc/cont-init.d/02-fix-postgre-schema b/rootfs/etc/cont-init.d/02-fix-postgre-schema deleted file mode 100644 index 1315190..0000000 --- a/rootfs/etc/cont-init.d/02-fix-postgre-schema +++ /dev/null @@ -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