diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2018-07-26 16:48:53 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2018-07-26 16:49:24 +0200 |
commit | b19b71ab89761e801c27038f093d76655efabfbf (patch) | |
tree | 6502b5650c12f630bb6aada9448ca4238b556148 /lava-master/scripts | |
parent | b7b57615f30030fc1a456da1008a0231836fa5ac (diff) |
Permit to configure email for LAVA users
Diffstat (limited to 'lava-master/scripts')
-rwxr-xr-x | lava-master/scripts/setup.sh | 4 |
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 |