Honeynode for 7.1 devices 10/95110/5
authormanuedelf <emmanuelle.delfour@orange.com>
Wed, 10 Feb 2021 10:38:02 +0000 (11:38 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Tue, 23 Feb 2021 10:34:35 +0000 (10:34 +0000)
- update install_honeynode.sh script to install honeynode for devices
7.1
- create tests/honeynode/7.1 directory

JIRA: TRNSPRTPCE-368
Signed-off-by: manuedelf <emmanuelle.delfour@orange.com>
Change-Id: Iae5a5930fe2276e4eb6201ae559f02612c8c070b

tests/honeynode/7.1/.gitkeep [new file with mode: 0644]
tests/install_honeynode.sh

diff --git a/tests/honeynode/7.1/.gitkeep b/tests/honeynode/7.1/.gitkeep
new file mode 100644 (file)
index 0000000..e69de29
index 57fe50a59e2351a70db4f003608f81f411ea022d..0af1ee6a08b055d70de260d506c372d16bebd1d0 100755 (executable)
@@ -23,6 +23,10 @@ if [ -d "$(dirname $0)/honeynode/2.2.1/honeynode-simulator" ];then
     echo "Removing $(dirname $0)/honeynode/2.2.1/honeynode-simulator directory"
     rm -rf $(dirname $0)/honeynode/2.2.1/honeynode-simulator
 fi
     echo "Removing $(dirname $0)/honeynode/2.2.1/honeynode-simulator directory"
     rm -rf $(dirname $0)/honeynode/2.2.1/honeynode-simulator
 fi
+if [ -d "$(dirname $0)/honeynode/7.1/honeynode-simulator" ];then
+    echo "Removing $(dirname $0)/honeynode/7.1/honeynode-simulator directory"
+    rm -rf $(dirname $0)/honeynode/7.1/honeynode-simulator
+fi
 #download honeynode for 1.2.1 devices and install it
 #complete source code can be found at https://gitlab.com/Orange-OpenSource/lfn/odl/honeynode-simulator.git
 echo "Installing honeynode for 1.2.1 devices to $(dirname $0)/honeynode/1.2.1/honeynode-simulator directory "
 #download honeynode for 1.2.1 devices and install it
 #complete source code can be found at https://gitlab.com/Orange-OpenSource/lfn/odl/honeynode-simulator.git
 echo "Installing honeynode for 1.2.1 devices to $(dirname $0)/honeynode/1.2.1/honeynode-simulator directory "
@@ -34,3 +38,8 @@ echo "Installing honeynode for 2.2.1 devices to $(dirname $0)/honeynode/2.2.1/ho
 curl -sS --location --request GET "https://gitlab.com/api/v4/projects/17518226/jobs/artifacts/honeynode-plugin-aggregator-2.0.5/download?job=mvn-build" -o $(dirname $0)/honeynode/2.2.1/artifact.zip
 unzip -q $(dirname $0)/honeynode/2.2.1/artifact.zip -d $(dirname $0)/honeynode/2.2.1
 rm -f $(dirname $0)/honeynode/2.2.1/artifact.zip
 curl -sS --location --request GET "https://gitlab.com/api/v4/projects/17518226/jobs/artifacts/honeynode-plugin-aggregator-2.0.5/download?job=mvn-build" -o $(dirname $0)/honeynode/2.2.1/artifact.zip
 unzip -q $(dirname $0)/honeynode/2.2.1/artifact.zip -d $(dirname $0)/honeynode/2.2.1
 rm -f $(dirname $0)/honeynode/2.2.1/artifact.zip
+#download honeynode for 7.1 devices and install it
+echo "Installing honeynode for 7.1 devices to $(dirname $0)/honeynode/7.1/honeynode-simulator directory "
+curl -sS --location --request GET "https://gitlab.com/api/v4/projects/17518226/jobs/artifacts/honeynode-plugin-aggregator-7.1.2/download?job=mvn-build" -o $(dirname $0)/honeynode/7.1/artifact.zip
+unzip -q $(dirname $0)/honeynode/7.1/artifact.zip -d $(dirname $0)/honeynode/7.1
+rm -f $(dirname $0)/honeynode/7.1/artifact.zip