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.

11 lines
459 B

7 years ago
7 years ago
7 years ago
  1. #!/bin/sh
  2. VERSION="$1"
  3. MD5SUM="`cat opennms-horizon.qcow2.md5sum | awk '{print $1}'`"
  4. FILESIZE="`wc -c opennms-horizon.qcow2 | awk '{print $1}'`"
  5. echo "Creating new opennms-horizon.gns3a appliance file:"
  6. echo "- OpenNMS version.: $VERSION"
  7. echo "- Image md5sum....: $MD5SUM"
  8. echo "- Image filesize..: $FILESIZE"
  9. sed -e "s/\${version}/$VERSION/" -e "s/\${md5sum}/$MD5SUM/" -e "s/\${filesize}/$FILESIZE/" ../gns3/opennms-horizon.gns3a > opennms-horizon.gns3a