diff options
Diffstat (limited to 'share/hydra/module-update')
-rwxr-xr-x | share/hydra/module-update | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/hydra/module-update b/share/hydra/module-update index 3887bd2..ac19b57 100755 --- a/share/hydra/module-update +++ b/share/hydra/module-update @@ -21,4 +21,12 @@ fi # Update the module ( cd $PUPPET/modules/$MODULE; git pull origin master ) + +# Verify the module +if ! hydra $HYDRA module-verify $MODULE; then + echo "ERROR: Updated module doesn't match hash, please verify and update manually." + exit 1 +fi + +# Commit ( cd $PUPPET; git commit -a -m "Updating module $MODULE"; git push ) |