diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-10-15 12:39:44 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-10-20 10:42:13 +0200 |
commit | 5403022c376a53f3c52c4c49e3fd12a7e5ce53a0 (patch) | |
tree | 83d7c9374819fecff2a4d54e888b30c69dcecbfa /client/engine/Image.lib | |
parent | 51ae582fe3e8b4dfef46aa4c5e723aa9e3372a78 (diff) |
#1062 Calculate checksum on image creation
Otherwise, OpenGnsys depends on cron and bittorrent specific scripts to
obtain images checksums.
Diffstat (limited to 'client/engine/Image.lib')
-rwxr-xr-x | client/engine/Image.lib | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/engine/Image.lib b/client/engine/Image.lib index 4453bcfc..d45ece45 100755 --- a/client/engine/Image.lib +++ b/client/engine/Image.lib @@ -431,6 +431,7 @@ ERRCODE=$? if [ $ERRCODE == 0 ]; then echo "$(ogGetImageInfo $IMGFILE):$(ogGetHostname)" > $IMGFILE.info cp -f $IMGFILE.info /tmp/image.info + md5sum "$IMGFILE" | cut -f1 -d " " > "$IMGFILE".full.sum else ogRaiseError $OG_ERR_IMAGE "$1 $2 $IMGFILE" rm -f "$IMGFILE" |