diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-03 10:27:56 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-03 10:27:56 +0100 |
commit | 7dd6af65ce6988585bbd47268a1532c8844c4d25 (patch) | |
tree | 3c2c243d89e305f19a854415150713f007f3a68e /bin/install-as-user | |
parent | 26b71d818cf023968e2ee9afd1c4934f57c9111f (diff) | |
parent | ac2e17b025eee17ab7fc0bcb0906faf2af7a3a41 (diff) |
Merge branch '1755-update-schema-when-empty'
Diffstat (limited to 'bin/install-as-user')
-rwxr-xr-x | bin/install-as-user | 6 |
1 files changed, 1 insertions, 5 deletions
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): |