summaryrefslogtreecommitdiffstats
path: root/lava-master/scripts
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-07-18 14:40:37 +0200
committerCorentin LABBE <clabbe@baylibre.com>2018-07-26 09:57:25 +0200
commitbe50f16913d2877a6695c8b25d36313a13b255c0 (patch)
treee17935ac1d0ce130bddc84f32f23706506603980 /lava-master/scripts
parentfd42a55a19f6fa32efb5893f5fb43f86de9b3e2d (diff)
Permit to choose the FQDN printed in email
Diffstat (limited to 'lava-master/scripts')
-rwxr-xr-xlava-master/scripts/setup.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/lava-master/scripts/setup.sh b/lava-master/scripts/setup.sh
index dd0d58f..e217a96 100755
--- a/lava-master/scripts/setup.sh
+++ b/lava-master/scripts/setup.sh
@@ -21,6 +21,12 @@ if [ -e /db_lavaserver ];then
fi
chown -R lavaserver:lavaserver /var/lib/lava-server/default/media/job-output/
+# default site is set as example.com
+if [ -e /root/lava_http_fqdn ];then
+ sudo -u postgres psql lavaserver -c "UPDATE django_site SET name = '$(cat /root/lava_http_fqdn)'" || exit $?
+ sudo -u postgres psql lavaserver -c "UPDATE django_site SET domain = '$(cat /root/lava_http_fqdn)'" || exit $?
+fi
+
if [ -e /root/lava-users ];then
for ut in $(ls /root/lava-users)
do