diff options
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/debian/postinst b/debian/postinst index 8a1c7c588..8b01d4a7e 100644 --- a/debian/postinst +++ b/debian/postinst | |||
@@ -280,6 +280,12 @@ set_ssh_agent_permissions() { | |||
280 | } | 280 | } |
281 | 281 | ||
282 | 282 | ||
283 | fix_conffile_permissions() { | ||
284 | # Clean up after executable /etc/default/ssh in 1:3.5p1-5. dpkg | ||
285 | # doesn't do this for us; see bug #192981. | ||
286 | chmod 644 /etc/default/ssh | ||
287 | } | ||
288 | |||
283 | setup_startup() { | 289 | setup_startup() { |
284 | db_get ssh/run_sshd | 290 | db_get ssh/run_sshd |
285 | if [ "$RET" = "false" ] ; then | 291 | if [ "$RET" = "false" ] ; then |
@@ -306,8 +312,13 @@ fix_statoverride | |||
306 | create_alternatives | 312 | create_alternatives |
307 | setup_sshd_user | 313 | setup_sshd_user |
308 | set_sshd_permissions | 314 | set_sshd_permissions |
309 | if [ "$2" = "1:3.5p1-1" ]; then fix_ssh_group; fi | 315 | if [ "$2" = "1:3.5p1-1" ]; then |
316 | fix_ssh_group | ||
317 | fi | ||
310 | set_ssh_agent_permissions | 318 | set_ssh_agent_permissions |
319 | if dpkg --compare-versions "$2" lt 1:3.6.1p2-2; then | ||
320 | fix_conffile_permissions | ||
321 | fi | ||
311 | setup_startup | 322 | setup_startup |
312 | setup_init | 323 | setup_init |
313 | 324 | ||