diff options
4 files changed, 18 insertions, 3 deletions
diff --git a/amavis/spamassassin/sa-update-hooks.d/local-amavis-restart b/amavis/spamassassin/sa-update-hooks.d/local-amavis-restart new file mode 100755 index 0000000..2e84fe8 --- /dev/null +++ b/amavis/spamassassin/sa-update-hooks.d/local-amavis-restart @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d amavis restart > /dev/null 2>&1 +else + /etc/init.d/amavis restart > /dev/null 2>&1 +fi diff --git a/apt/apt.conf.d/99-local-set-preferred-x-session-manager b/apt/apt.conf.d/99-local-set-preferred-x-session-manager index a842f9f..4e0b73f 100755 --- a/apt/apt.conf.d/99-local-set-preferred-x-session-manager +++ b/apt/apt.conf.d/99-local-set-preferred-x-session-manager @@ -2,5 +2,7 @@ DPkg { -Post-Invoke {"if [ -x /usr/sbin/update-alternatives ] && [ -x /usr/bin/gnome-session ]; then /usr/sbin/update-alternatives --set x-session-manager /usr/bin/gnome-session; else exit 0; fi";}; +Post-Invoke { +"s=/usr/bin/gnome-session; [ ! -x $s ] || /usr/sbin/update-alternatives --set x-session-manager $s" +;}; }; diff --git a/apt/apt.conf.d/99-local-set-preferred-x-terminal-emulator b/apt/apt.conf.d/99-local-set-preferred-x-terminal-emulator index a16ef99..ac74e1b 100755 --- a/apt/apt.conf.d/99-local-set-preferred-x-terminal-emulator +++ b/apt/apt.conf.d/99-local-set-preferred-x-terminal-emulator @@ -2,5 +2,7 @@ DPkg { -Post-Invoke {"if [ -x /usr/sbin/update-alternatives ] && [ -x /usr/bin/urxvt ]; then /usr/sbin/update-alternatives --set x-terminal-emulator /usr/bin/urxvt; else exit 0; fi";}; +Post-Invoke { +"s=/usr/bin/urxvtcd; [ ! -x $s ] || /usr/sbin/update-alternatives --set x-terminal-emulator $s" +;}; }; diff --git a/apt/apt.conf.d/99-local-set-preferred-x-www-browser b/apt/apt.conf.d/99-local-set-preferred-x-www-browser index 9302c6e..5fbbe90 100755 --- a/apt/apt.conf.d/99-local-set-preferred-x-www-browser +++ b/apt/apt.conf.d/99-local-set-preferred-x-www-browser @@ -2,5 +2,7 @@ DPkg { -Post-Invoke {"if [ -x /usr/sbin/update-alternatives ] && [ -x /usr/bin/iceweasel ]; then /usr/sbin/update-alternatives --set x-www-browser /usr/bin/iceweasel; else exit 0; fi";}; +Post-Invoke { +"s=/usr/bin/iceweasel; [ ! -x $s ] || /usr/sbin/update-alternatives --set x-www-browser $s" +;}; }; |