diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index 552b0744e..f45f5851c 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -5,7 +5,6 @@ set -e | |||
5 | db_version 2.0 | 5 | db_version 2.0 |
6 | 6 | ||
7 | action="$1" | 7 | action="$1" |
8 | oldversion="$2" | ||
9 | 8 | ||
10 | umask 022 | 9 | umask 022 |
11 | 10 | ||
@@ -47,7 +46,7 @@ create_key() { | |||
47 | 46 | ||
48 | if echo "$hostkeys" | grep -x "$file" >/dev/null && \ | 47 | if echo "$hostkeys" | grep -x "$file" >/dev/null && \ |
49 | [ ! -f "$file" ] ; then | 48 | [ ! -f "$file" ] ; then |
50 | echo -n $msg | 49 | printf %s "$msg" |
51 | ssh-keygen -q -f "$file" -N '' "$@" | 50 | ssh-keygen -q -f "$file" -N '' "$@" |
52 | echo | 51 | echo |
53 | if which restorecon >/dev/null 2>&1; then | 52 | if which restorecon >/dev/null 2>&1; then |
@@ -92,7 +91,7 @@ create_sshdconfig() { | |||
92 | password_authentication="$RET" | 91 | password_authentication="$RET" |
93 | 92 | ||
94 | trap cleanup EXIT | 93 | trap cleanup EXIT |
95 | new_config="$(tempfile)" | 94 | new_config="$(mktemp)" |
96 | cp -a /usr/share/openssh/sshd_config "$new_config" | 95 | cp -a /usr/share/openssh/sshd_config "$new_config" |
97 | if [ "$permit_root_login" != true ]; then | 96 | if [ "$permit_root_login" != true ]; then |
98 | sed -i 's/^#*PermitRootLogin .*/PermitRootLogin yes/' \ | 97 | sed -i 's/^#*PermitRootLogin .*/PermitRootLogin yes/' \ |