diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index daa0f6796..90bad6285 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -16,7 +16,9 @@ get_config_option() { | |||
16 | [ -f /etc/ssh/sshd_config ] || return | 16 | [ -f /etc/ssh/sshd_config ] || return |
17 | 17 | ||
18 | # TODO: actually only one '=' allowed after option | 18 | # TODO: actually only one '=' allowed after option |
19 | perl -lne 's/\s+/ /g; print if s/^\s*'"$option"'[[:space:]=]+//i' \ | 19 | perl -lne ' |
20 | s/[[:space:]]+/ /g; s/[[:space:]]+$//; | ||
21 | print if s/^[[:space:]]*'"$option"'[[:space:]=]+//i' \ | ||
20 | /etc/ssh/sshd_config | 22 | /etc/ssh/sshd_config |
21 | } | 23 | } |
22 | 24 | ||