summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2020-05-23 12:46:54 +0100
committerColin Watson <cjwatson@debian.org>2020-05-23 12:46:54 +0100
commitaef2be11c5ea90bc66e774923e6570213e54c195 (patch)
tree9dbd33aa7db299c01f925ab39b594588f96ab304 /debian/openssh-server.postinst
parent296562ba187866e518184f1b5316913d5cd52366 (diff)
Fix or suppress various shellcheck errors under debian/
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst5
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
5db_version 2.0 5db_version 2.0
6 6
7action="$1" 7action="$1"
8oldversion="$2"
9 8
10umask 022 9umask 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/' \