From 66226af6929845dbe14a477e87237950a690b918 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 22 May 2013 00:22:16 +0100 Subject: Remove lots of maintainer script support for upgrades from pre-etch (three releases before current stable). --- debian/openssh-server.config | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 debian/openssh-server.config (limited to 'debian/openssh-server.config') diff --git a/debian/openssh-server.config b/debian/openssh-server.config deleted file mode 100644 index 3cbcf6ea6..000000000 --- a/debian/openssh-server.config +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -action=$1 -version=$2 - -# Source debconf library. -. /usr/share/debconf/confmodule -db_version 2.0 - - -get_config_option() { - option="$1" - - [ -f /etc/ssh/sshd_config ] || return - - # TODO: actually only one '=' allowed after option - perl -ne 'print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \ - /etc/ssh/sshd_config 2>/dev/null -} - - -if [ -e /etc/ssh/sshd_config ] -then - # An empty version means we're upgrading from before the package split, - # so check. - if dpkg --compare-versions "$version" lt 1:3.8.1p1-11 - then - passwordauth="$(get_config_option PasswordAuthentication)" - crauth="$(get_config_option ChallengeResponseAuthentication)" - if [ "$passwordauth" = no ] && \ - ([ -z "$crauth" ] || [ "$crauth" = yes ]) - then - db_input critical ssh/disable_cr_auth || true - fi - fi -fi - - -db_go - -exit 0 -- cgit v1.2.3