diff options
author | khilman <khilman@users.noreply.github.com> | 2018-06-05 11:47:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 11:47:07 -0700 |
commit | c1071d0f9b57958b22546abe8eadf670b3926b98 (patch) | |
tree | 6ac6947fc9196283ecba0c17a9033d3af3aaaa99 /lavalab-gen.sh | |
parent | 2d79d03f5818c096535c9784b12df5ea99c0dbff (diff) | |
parent | a22e4a89a06bda681ba329bf73e05a7d9196efe3 (diff) |
Merge pull request #27 from montjoie/multi_slave_2018_x
Multi slave 2018 x
Diffstat (limited to 'lavalab-gen.sh')
-rwxr-xr-x | lavalab-gen.sh | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/lavalab-gen.sh b/lavalab-gen.sh index 60c5d94..08ab2ad 100755 --- a/lavalab-gen.sh +++ b/lavalab-gen.sh @@ -1,30 +1,11 @@ #!/bin/sh -rm -rv lava-master/devices/ -rm -rv lava-master/slaves/ -rm -rv lava-slave/conmux/ -rm -rv lava-master/tokens/ -rm -rv lava-master/users/ -rm udev/*lavalab*rules rm lava-master/scripts/build-lava rm lava-slave/scripts/build-lava -rm docker-compose.yml +rm -r output if [ "$1" = "mrproper" ];then exit 0 fi ./lavalab-gen.py || exit 1 - -#check for root -BEROOT="" -if [ $(id -u) -ne 0 ];then - BEROOT="sudo " -fi -$BEROOT rm /etc/udev/rules.d/*lava*rules -$BEROOT cp udev/*lava*rules /etc/udev/rules.d/ -$BEROOT udevadm control --reload-rules || exit $? -$BEROOT udevadm trigger || exit $? - -docker-compose build || exit 1 -docker-compose up -d || exit 1 |