summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2004-10-06 00:58:03 +0000
committerColin Watson <cjwatson@debian.org>2004-10-06 00:58:03 +0000
commit2aa6c11ef1f1ec0ddd319987c5be30e8e42c805a (patch)
tree880067e9d2bff5db95268cf5ac1eb6dd1e2b50c3 /debian
parent726497d9b38fab2eb9e9f66e73050527d9963712 (diff)
get_config_option checks for existence of /etc/ssh/sshd_config.
Diffstat (limited to 'debian')
-rw-r--r--debian/config2
-rw-r--r--debian/postinst2
2 files changed, 4 insertions, 0 deletions
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
16get_config_option() { 16get_config_option() {
17 option="$1" 17 option="$1"
18 18
19 [ -f /etc/ssh/sshd_config ] || return
20
19 # TODO: actually only one '=' allowed after option 21 # TODO: actually only one '=' allowed after option
20 perl -ne 'print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \ 22 perl -ne 'print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \
21 /etc/ssh/sshd_config 23 /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() {
30get_config_option() { 30get_config_option() {
31 option="$1" 31 option="$1"
32 32
33 [ -f /etc/ssh/sshd_config ] || return
34
33 # TODO: actually only one '=' allowed after option 35 # TODO: actually only one '=' allowed after option
34 perl -ne 'print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \ 36 perl -ne 'print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \
35 /etc/ssh/sshd_config 37 /etc/ssh/sshd_config