diff options
author | Tyler Baker <forcedinductionz@gmail.com> | 2017-10-27 21:59:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-27 21:59:34 -0700 |
commit | 736fc3248108069d9f7d98fadc436aad3732dfab (patch) | |
tree | 01c4310dd22d3ef9a3a19c719de07aecb0015778 /lavalab-gen.sh | |
parent | ceb64a544ae771e2e1d1a41e46a59c6f0a9de060 (diff) | |
parent | 09e2ea04485476093b97277cf4bf445052f4ba1b (diff) |
Merge pull request #10 from montjoie/misc
Misc
Diffstat (limited to 'lavalab-gen.sh')
-rwxr-xr-x | lavalab-gen.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lavalab-gen.sh b/lavalab-gen.sh new file mode 100755 index 0000000..06df881 --- /dev/null +++ b/lavalab-gen.sh @@ -0,0 +1,20 @@ +#!/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 lavalab*rules + +if [ "$1" = "mrproper" ];then + exit 0 +fi + +./lavalab-gen.py || exit 1 + +rm /etc/udev/rules.d/lavalab*rules +cp lavalab*rules /etc/udev/rules.d/ + +docker-compose build || exit 1 +docker-compose up || exit 1 |