|
|
@ -0,0 +1,12 @@ |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
VERSION="$1" |
|
|
|
MD5SUM="`cat opennms-horizon.qcow2.gz.md5sum | cut -d\\ -f1`" |
|
|
|
FILESIZE="`stat -c %s opennms-horizon.qcow2.gz`" |
|
|
|
|
|
|
|
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 |