summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2009-07-31 15:16:19 +0000
committerColin Watson <cjwatson@debian.org>2009-07-31 15:16:19 +0000
commitdc4cae7464efd7312ca29626efed55c3b26ecc62 (patch)
tree294305576b218ae7c27b9dba22c69fe731265572 /debian/openssh-server.postinst
parentac58d020d07f4a24409106429799d001590386b5 (diff)
Use 'which' rather than 'type' in maintainer scripts.
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
index b7ea210c4..e3558a8f5 100644
--- a/debian/openssh-server.postinst
+++ b/debian/openssh-server.postinst
@@ -163,7 +163,7 @@ create_key() {
163 echo -n $msg 163 echo -n $msg
164 ssh-keygen -q -f "$file" -N '' "$@" 164 ssh-keygen -q -f "$file" -N '' "$@"
165 echo 165 echo
166 if type restorecon >/dev/null 2>&1; then 166 if which restorecon >/dev/null 2>&1; then
167 restorecon "$file.pub" 167 restorecon "$file.pub"
168 fi 168 fi
169 fi 169 fi