aboutsummaryrefslogtreecommitdiffstats
path: root/packages/arquillian-unit-tests/src/test/resources/resource-examples/asdc/simpleNotif-V5/artifacts/mount_iso_script.sh
diff options
context:
space:
mode:
authorBenjamin, Max (mb388a) <mb388a@us.att.com>2018-07-30 15:56:09 -0400
committerBenjamin, Max (mb388a) <mb388a@us.att.com>2018-07-31 11:09:25 -0400
commit5a6a6de6f1a26a1897e4917a0df613e25a24eb70 (patch)
tree59a968f27b4b603aacc9d5e7b51fb598aeec5321 /packages/arquillian-unit-tests/src/test/resources/resource-examples/asdc/simpleNotif-V5/artifacts/mount_iso_script.sh
parentb6dc38501f3b746426b42d9de4cc883d894149e8 (diff)
Containerization feature of SO
Change-Id: I95381232eeefcd247a66a5cec370a8ce1c288e18 Issue-ID: SO-670 Signed-off-by: Benjamin, Max (mb388a) <mb388a@us.att.com>
Diffstat (limited to 'packages/arquillian-unit-tests/src/test/resources/resource-examples/asdc/simpleNotif-V5/artifacts/mount_iso_script.sh')
-rw-r--r--packages/arquillian-unit-tests/src/test/resources/resource-examples/asdc/simpleNotif-V5/artifacts/mount_iso_script.sh34
1 files changed, 0 insertions, 34 deletions
diff --git a/packages/arquillian-unit-tests/src/test/resources/resource-examples/asdc/simpleNotif-V5/artifacts/mount_iso_script.sh b/packages/arquillian-unit-tests/src/test/resources/resource-examples/asdc/simpleNotif-V5/artifacts/mount_iso_script.sh
deleted file mode 100644
index 91df598dc2..0000000000
--- a/packages/arquillian-unit-tests/src/test/resources/resource-examples/asdc/simpleNotif-V5/artifacts/mount_iso_script.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-#. .config
-#following would be in the .config file
- device_name="/dev/vde"
- install_script="install_nimbus.sh"
- enable_logic_flag_file=".flag"
-#end of config file
-
-#get the semaphore, 0 - disbaled, 1- enabled
-flag=$(cat ${enable_logic_flag_file})
-
-#check if device is mounted already
-test=$(mount | grep ${device_name})
-if [ "$flag" == "1" ]; then
- if [ -e ${device_name} ] && [ ! "${test}" ]; then
- #mount the iso image
- mount -t iso9660 -v -o loop /dev/vde/ /mnt/iso
- #if availabe run the install script (it contains the install.sh steps)
- if [ -e "${install_script}" ] && [ -f "${install_script}" ]; then
- ${install_script}
- fi
- #disable the script from attempting to
- # mount and run install again until needed;
- echo "0" > ${enable_logic_flag_file}
- #if nedeed add step to comment out the crontab line here;
- fi
-else
- echo "Auto mounting ISO & run install logic disabled!"
-fi
-
-#cron job
-# * * * * * /mount_iso_script.sh
-