From 3eb7f8127ed3827d9a0d7020969b101b1e7cf8f3 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 24 Dec 2021 21:39:00 +0200 Subject: [PATCH] add --- install/usr/share/swarmlab.io/sec/project/bin/start-gui.sh | 3 +++ install/usr/share/swarmlab.io/sec/run-gui.sh | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 install/usr/share/swarmlab.io/sec/project/bin/start-gui.sh create mode 100644 install/usr/share/swarmlab.io/sec/run-gui.sh diff --git a/install/usr/share/swarmlab.io/sec/project/bin/start-gui.sh b/install/usr/share/swarmlab.io/sec/project/bin/start-gui.sh new file mode 100644 index 0000000..5f2c24d --- /dev/null +++ b/install/usr/share/swarmlab.io/sec/project/bin/start-gui.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +sudo -H -u node bash -c 'cd /home/node/twint-explorer; && npm start .' diff --git a/install/usr/share/swarmlab.io/sec/run-gui.sh b/install/usr/share/swarmlab.io/sec/run-gui.sh new file mode 100644 index 0000000..e054e74 --- /dev/null +++ b/install/usr/share/swarmlab.io/sec/run-gui.sh @@ -0,0 +1,2 @@ +xhost +local:docker +docker exec -e DISPLAY=$DISPLAY microservice-firefox_masterservice_1 /bin/sh -c "npm start ."