From 0f29da3a0aa8f3b936c00b457372970ed2727e25 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 2 Apr 2024 21:42:06 +0200 Subject: [PATCH] Customize some settings in db --- scripts/_common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index 9b36bc4..3914927 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -234,6 +234,9 @@ myynh_create_psql_db() { myynh_execute_psql_as_root --sql="CREATE USER $app WITH ENCRYPTED PASSWORD '$db_pwd';" --database="$app" myynh_execute_psql_as_root --sql="GRANT ALL PRIVILEGES ON DATABASE $app TO $app;" --database="$app" myynh_execute_psql_as_root --sql="ALTER USER $app WITH SUPERUSER;" --database="$app" + + myynh_execute_psql_as_root --sql="INSERT INTO system_config (key, value) VALUES ('newVersionCheck.enabled', false);" --database="$app" + myynh_execute_psql_as_root --sql="INSERT INTO system_config (key, value) VALUES ('machineLearning.url', '127.0.0.1:$port_machinelearning');" --database="$app" } # Remove the database