diff options
Diffstat (limited to 'debian')
| -rw-r--r-- | debian/changelog | 3 | ||||
| -rw-r--r-- | debian/itzks-systems-backup.install | 2 | ||||
| -rwxr-xr-x | debian/itzks-systems-backup.postinst | 41 | ||||
| -rwxr-xr-x | debian/itzks-systems-backup.prerm | 35 | 
4 files changed, 80 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index a66f9cf..b42f2ec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,9 @@ itzks-systems (2016.07.19.1) UNRELEASED; urgency=medium    * CRON: Silence calls to apt-get autoclean on system reboot. Such messages      are "flooding" root mails on TJENER. +  * Monitoring: Add check_dirvish (must run via sudo). - -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de>  Tue, 19 Jul 2016 18:26:19 +0200 + -- Mike Gabriel <mike.gabriel@das-netzwerkteam.de>  Tue, 19 Jul 2016 18:37:47 +0200  itzks-systems (2016.07.15.7) unstable; urgency=medium diff --git a/debian/itzks-systems-backup.install b/debian/itzks-systems-backup.install index 9301dd2..27ddb6e 100644 --- a/debian/itzks-systems-backup.install +++ b/debian/itzks-systems-backup.install @@ -1 +1,3 @@  usr-lib-nagios-plugins/check_md_raid usr/lib/nagios/plugins/ +usr-lib-nagios-plugins/check_dirvish* usr/lib/nagios/plugins/ +etc/sudoers.d/itzks-systems-backup etc/sudoers.d/ 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: +#        * <postinst> `configure' <most-recently-configured-version> +#        * <old-postinst> `abort-upgrade' <new version> +#        * <conflictor's-postinst> `abort-remove' `in-favour' <package> +#          <new-version> +#        * <postinst> `abort-remove' +#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +#          <failed-install-package> <version> `removing' +#          <conflicting-package> <version> +# 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 diff --git a/debian/itzks-systems-backup.prerm b/debian/itzks-systems-backup.prerm new file mode 100755 index 0000000..6bb0047 --- /dev/null +++ b/debian/itzks-systems-backup.prerm @@ -0,0 +1,35 @@ +#!/bin/sh +# prerm script for itzks-systems-backup +# +# see: dh_installdeb(1) +# summary of how this script can be called: +#        * <prerm> `remove' +#        * <old-prerm> `upgrade' <new-version> +#        * <new-prerm> `failed-upgrade' <old-version> +#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +#        * <deconfigured's-prerm> `deconfigure' `in-favour' +#        <package-being-installed> <version> `removing' +#        <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +set -e +case "$1" in +	remove) +		if dpkg-statoverride --list /etc/sudoers.d/itzks-systems-backup >/dev/null; then +			dpkg-statoverride --remove /etc/sudoers.d/itzks-systems-backup +		fi +	;; +	deconfigure|upgrade|failed-upgrade) +		: +	;; +	*) echo "$0: didn't understand being called with \`$1'" 1>&2 +		exit 1;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0  | 
