From 7a429f23d389f21d7f98737e6f641442c794226e Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 26 Nov 2012 16:25:31 +0000 Subject: Merge Upstart job scripting support from Ubuntu, to handle the Upstart job being primary there. --- debian/ssh-krb5.postinst | 73 ------------------------------------------------ 1 file changed, 73 deletions(-) delete mode 100644 debian/ssh-krb5.postinst (limited to 'debian/ssh-krb5.postinst') diff --git a/debian/ssh-krb5.postinst b/debian/ssh-krb5.postinst deleted file mode 100644 index 4d943d861..000000000 --- a/debian/ssh-krb5.postinst +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh - -set -e - -action="$1" -oldversion="$2" - -if [ "$action" = configure ] ; then - if dpkg --compare-versions "$oldversion" lt-nl 1:4.3p2-7; then - # Replaced by /etc/init.d/ssh. - if [ -f /etc/init.d/ssh-krb5 ]; then - mv /etc/init.d/ssh-krb5 /etc/init.d/ssh-krb5.dpkg-old - update-rc.d ssh-krb5 remove || true - fi - fi - - # Make sure that GSSAPI is enabled. If there is no uncommented GSSAPI - # configuration, uncomment any commented-out configuration if present - # (this will catch the case of a fresh install of openssh-server). - # Otherwise, add configuration turning on GSSAPIAuthentication and - # GSSAPIKeyExchange. - # - # If there is some configuration, we may be upgrading from ssh-krb5. It - # enabled GSSAPIKeyExchange without any configuration option. Therefore, - # if it isn't explicitly set, always enable it for compatible behavior - # with ssh-krb5. - if dpkg --compare-versions "$oldversion" ge 1:4.3p2-9; then - : - else - changed= - if grep -qi '^[ ]*GSSAPI' /etc/ssh/sshd_config ; then - if grep -qi '^[ ]*GSSAPIKeyExchange' /etc/ssh/sshd_config ; then - : - else - changed=true - cat >> /etc/ssh/sshd_config < /etc/ssh/sshd_config.dpkg-new - chown --reference /etc/ssh/sshd_config \ - /etc/ssh/sshd_config.dpkg-new - chmod --reference /etc/ssh/sshd_config \ - /etc/ssh/sshd_config.dpkg-new - mv /etc/ssh/sshd_config.dpkg-new /etc/ssh/sshd_config - else - cat >> /etc/ssh/sshd_config <