From ac2e17b025eee17ab7fc0bcb0906faf2af7a3a41 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Mon, 17 Jul 2017 14:07:49 +0100 Subject: Allow update-schema to run on empty database. --- bin/install-as-user | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'bin/install-as-user') diff --git a/bin/install-as-user b/bin/install-as-user index 2730fe404..e42401758 100755 --- a/bin/install-as-user +++ b/bin/install-as-user @@ -98,12 +98,8 @@ if ! psql -l | egrep "^ *$DB_NAME *\|" > /dev/null then createdb --owner "$UNIX_USER" "$DB_NAME" echo 'CREATE LANGUAGE plpgsql;' | psql -U "$UNIX_USER" "$DB_NAME" || true - psql -U "$UNIX_USER" "$DB_NAME" < "$REPOSITORY"/db/schema.sql - psql -U "$UNIX_USER" "$DB_NAME" < "$REPOSITORY"/db/alert_types.sql - psql -U "$UNIX_USER" "$DB_NAME" < "$REPOSITORY"/db/generate_secret.sql -else - bin/update-schema --commit fi +bin/update-schema --commit echo $DONE_MSG # Generate po and mo files (these invocations taken from Kagee's script): -- cgit v1.2.3