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.
14 lines
525 B
14 lines
525 B
#!/bin/sh
|
|
|
|
VERSION="$1"
|
|
MD5SUM="`md5sum opennms-horizon.qcow2 | awk '{print $1}'`"
|
|
FILESIZE="`wc -c opennms-horizon.qcow2 | awk '{print $1}'`"
|
|
|
|
echo "Creating new opennms-horizon.gns3a appliance file:"
|
|
echo "- OpenNMS version.: $VERSION"
|
|
echo "- Image md5sum....: $MD5SUM"
|
|
echo "- Image filesize..: $FILESIZE"
|
|
|
|
sed -e "s/\${version}/$VERSION/" -e "s/\${md5sum}/$MD5SUM/" -e "s/\${filesize}/$FILESIZE/" ../gns3/opennms-horizon.gns3a > opennms-horizon.gns3a
|
|
|
|
rm -rf opennms-horizon.qcow2.md5sum opennms-horizon.qcow2.gz.md5sum
|