summaryrefslogtreecommitdiffstats
path: root/lava-master
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2018-07-26 16:48:53 +0200
committerCorentin LABBE <clabbe@baylibre.com>2018-07-26 16:49:24 +0200
commitb19b71ab89761e801c27038f093d76655efabfbf (patch)
tree6502b5650c12f630bb6aada9448ca4238b556148 /lava-master
parentb7b57615f30030fc1a456da1008a0231836fa5ac (diff)
Permit to configure email for LAVA users
Diffstat (limited to 'lava-master')
-rwxr-xr-xlava-master/scripts/setup.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lava-master/scripts/setup.sh b/lava-master/scripts/setup.sh
index e217a96..426876f 100755
--- a/lava-master/scripts/setup.sh
+++ b/lava-master/scripts/setup.sh
@@ -58,6 +58,10 @@ if [ -e /root/lava-users ];then
echo "Adding token to user $USER"
lava-server manage tokens add --user $USER --secret $TOKEN || exit 1
fi
+ if [ ! -z "$EMAIL" ];then
+ echo "Adding email to user $USER"
+ lava-server manage users update --email $EMAIL $USER || exit 1
+ fi
fi
done
fi