summaryrefslogtreecommitdiffstats
path: root/lavalab-gen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lavalab-gen.sh')
-rwxr-xr-xlavalab-gen.sh20
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