From d3eb24ecbe1c4445c6444c343b6c88c7ed7ceb67 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 19 Jul 2016 18:37:39 +0200 Subject: Monitoring: Add check_dirvish (must run via sudo). --- debian/itzks-systems-backup.postinst | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 debian/itzks-systems-backup.postinst (limited to 'debian/itzks-systems-backup.postinst') diff --git a/debian/itzks-systems-backup.postinst b/debian/itzks-systems-backup.postinst new file mode 100755 index 0000000..5ace5ac --- /dev/null +++ b/debian/itzks-systems-backup.postinst @@ -0,0 +1,41 @@ +#!/bin/sh +# postinst script for itzks-systems-backup +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + configure) + if ! dpkg-statoverride --list /etc/sudoers.d/itzks-systems-backup >/dev/null; then + dpkg-statoverride --add --update root root 0440 /etc/sudoers.d/itzks-systems-backup + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 -- cgit v1.2.3