#!/bin/bash -e

case "$1" in
    configure)
        # make consul-template re-read templates 
        kill -HUP $(service consul-template status |grep -o '[0-9]*') || true
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

exit 0
