summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2014-02-13 13:15:24 +0000
committerColin Watson <cjwatson@debian.org>2014-02-13 13:15:24 +0000
commit99a7116957f4fe28a42db97edb20c424b4aa593d (patch)
tree068def56c7baf753cce3ddbe5ae90d9ec122045c /debian/openssh-server.postinst
parentd66ca0fe0e76be36c6baa1bfeb3c883870e28343 (diff)
Remove code related to non-dependency-based sysv-rc ordering, since that is no longer supported.
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst13
1 files changed, 0 insertions, 13 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
index d4c1a4ddf..0189f5fbb 100644
--- a/debian/openssh-server.postinst
+++ b/debian/openssh-server.postinst
@@ -272,24 +272,11 @@ setup_sshd_user() {
272 fi 272 fi
273} 273}
274 274
275remove_old_init_links() {
276 # Yes, this only works with the SysV init script layout. I know.
277 # The important thing is that it doesn't actually *break* with
278 # file-rc ...
279 if [ -e /etc/rc2.d/S20ssh ]; then
280 update-rc.d -f ssh remove >/dev/null 2>&1
281 fi
282 rm -f /etc/rc0.d/K??ssh /etc/rc1.d/K??ssh /etc/rc6.d/K??ssh
283}
284
285if [ "$action" = configure ]; then 275if [ "$action" = configure ]; then
286 create_sshdconfig 276 create_sshdconfig
287 create_keys 277 create_keys
288 fix_statoverride 278 fix_statoverride
289 setup_sshd_user 279 setup_sshd_user
290 if dpkg --compare-versions "$2" lt 1:5.2p1-1; then
291 remove_old_init_links
292 fi
293 # Renamed to /etc/ssh/moduli in 2.9.9 (!) 280 # Renamed to /etc/ssh/moduli in 2.9.9 (!)
294 if dpkg --compare-versions "$2" lt 1:4.7p1-1; then 281 if dpkg --compare-versions "$2" lt 1:4.7p1-1; then
295 rm -f /etc/ssh/primes 282 rm -f /etc/ssh/primes