GNS3 Docker Images
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

unpack_MibBrowser.docker 591B

12345678910111213141516
  1. #!/bin/sh
  2. set -e -x
  3. owner=$(stat -c "%u:%g" /extern)
  4. cd
  5. # unpack ManageEngine_MibBrowser_FreeTool_64bit.bin
  6. old_mode=$(stat -c "%a" /extern/ManageEngine_MibBrowser_FreeTool_64bit.bin)
  7. chmod +x /extern/ManageEngine_MibBrowser_FreeTool_64bit.bin
  8. /extern/ManageEngine_MibBrowser_FreeTool_64bit.bin -silent
  9. chmod "$old_mode" /extern/ManageEngine_MibBrowser_FreeTool_64bit.bin
  10. # store as tar.gz
  11. cd ManageEngine/ManageEngine_Free_Tools/MibBrowser_Free_Tool
  12. tar -czf /extern/ManageEngine_MibBrowser_FreeTool_64bit.tar.gz -- *
  13. chown "$owner" /extern/ManageEngine_MibBrowser_FreeTool_64bit.tar.gz