summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-03-31 11:34:21 +0100
committerColin Watson <cjwatson@debian.org>2010-03-31 11:34:21 +0100
commit21653cc01f15857ec36fc5ec24aecf1d39c2855f (patch)
tree37140a381e866f78560ed021bd32b58e7d285cb6 /debian/openssh-server.postinst
parent69456e98a770b7e946b416e5a41ec6288a31e22f (diff)
Drop most of our "LogLevel SILENT" (-qq) patch. This was originally
introduced to match the behaviour of non-free SSH, in which -q does not suppress fatal errors, but matching the behaviour of OpenSSH upstream is much more important nowadays. We no longer document that -q does not suppress fatal errors (closes: #280609). Migrate "LogLevel SILENT" to "LogLevel QUIET" in sshd_config on upgrade.
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
index 557bf2b23..d415f3f0d 100644
--- a/debian/openssh-server.postinst
+++ b/debian/openssh-server.postinst
@@ -234,6 +234,13 @@ move_subsystem_sftp() {
234} 234}
235 235
236 236
237fix_loglevel_silent() {
238 if [ "$(get_config_option LogLevel)" = SILENT ]; then
239 set_config_option LogLevel QUIET
240 fi
241}
242
243
237create_sshdconfig() { 244create_sshdconfig() {
238 if [ -e /etc/ssh/sshd_config ] ; then 245 if [ -e /etc/ssh/sshd_config ] ; then
239 # Upgrade an existing sshd configuration. 246 # Upgrade an existing sshd configuration.
@@ -284,6 +291,11 @@ create_sshdconfig() {
284 rename_config_option KeepAlive TCPKeepAlive 291 rename_config_option KeepAlive TCPKeepAlive
285 fi 292 fi
286 293
294 # 'LogLevel SILENT' is now equivalent to QUIET.
295 if dpkg --compare-versions "$oldversion" lt 1:5.4p1-1; then
296 fix_loglevel_silent
297 fi
298
287 return 0 299 return 0
288 fi 300 fi
289 301