Last active
July 15, 2016 20:35
-
-
Save TyrfingMjolnir/42a1a0ec2041fb87b439a81db96ae70c to your computer and use it in GitHub Desktop.
templatevalues.dsmanifest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "\"path\": \"/opt/artifacts/win2012r2template.zfs.gz\"" >> /opt/artifacts/my.dsmanifest | |
echo "\"sha1\": \"$(digest -a sha1 /opt/artifacts/win2012r2template.zfs.gz)\"" >> /opt/artifacts/my.dsmanifest | |
echo "\"size\": \"$(ls -l /opt/artifacts/win2012r2template.zfs.gz | awk '{ print $5 }')\"" >> /opt/artifacts/my.dsmanifest | |
echo "\"uuid\": \"$(uuid)\"" >> /opt/artifacts/my.dsmanifest | |
echo "\"creator_uuid\": \"$(uuid)\"" >> /opt/artifacts/my.dsmanifest | |
echo "\"vendor_uuid\": \"$(uuid)\"" >> /opt/artifacts/my.dsmanifest | |
echo "\"created_at\": \"$(date "+%Y-%m-%dT%H:%M:%SZ")\"" >> /opt/artifacts/my.dsmanifest | |
echo "\"updated_at\": \"$(date "+%Y-%m-%dT%H:%M:%SZ")\"" >> /opt/artifacts/my.dsmanifest | |
echo "\"published_at\": \"$(date "+%Y-%m-%dT%H:%M:%SZ")\"" >> /opt/artifacts/my.dsmanifest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment