From 2aa6c11ef1f1ec0ddd319987c5be30e8e42c805a Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Wed, 6 Oct 2004 00:58:03 +0000 Subject: get_config_option checks for existence of /etc/ssh/sshd_config. --- debian/config | 2 ++ debian/postinst | 2 ++ 2 files changed, 4 insertions(+) diff --git a/debian/config b/debian/config index 6d9729e62..5f98d713e 100644 --- a/debian/config +++ b/debian/config @@ -16,6 +16,8 @@ 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 diff --git a/debian/postinst b/debian/postinst index efd04c3d0..294177193 100644 --- a/debian/postinst +++ b/debian/postinst @@ -30,6 +30,8 @@ check_idea_key() { 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 -- cgit v1.2.3