From e141d445d07a90e5ff637de97b278fb7be54e860 Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 2 Jan 2022 16:21:42 +0200 Subject: [PATCH] add --- install/usr/share/swarmlab.io/sec/run-gui.sh | 2 ++ install/usr/share/swarmlab.io/sec/swarmlab-sec | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 install/usr/share/swarmlab.io/sec/run-gui.sh 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..86dd94d --- /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-oletools_masterservice_1 /bin/sh -c "olebrowse" diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index aaf6455..fa7b2a6 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -272,6 +272,7 @@ fi /bin/mkdir -p $Wdir/project +/bin/mkdir -p $Wdir/logs /bin/cp -rf $DIR/project/bin $Wdir/project /bin/cp -rf $DIR/project/courses $Wdir/project /bin/cp -f $DIR/project/hello_world.sh $Wdir/project @@ -281,6 +282,7 @@ fi /bin/cp -f $DIR/ROOT_PASSWORD $Wdir/ROOT_PASSWORD /bin/cp -rf $DIR/.vimrc $Wdir/.vimrc /bin/cp -rf $DIR/bin $Wdir +/bin/cp -rf $DIR/run-gui.sh $Wdir/run-gui.sh /bin/cp -rf $DIR/install-vim-plugin.sh $Wdir/install-vim-plugin.sh