diff options
author | Colin Watson <cjwatson@debian.org> | 2009-07-31 15:16:19 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2009-07-31 15:16:19 +0000 |
commit | dc4cae7464efd7312ca29626efed55c3b26ecc62 (patch) | |
tree | 294305576b218ae7c27b9dba22c69fe731265572 /debian/openssh-server.preinst | |
parent | ac58d020d07f4a24409106429799d001590386b5 (diff) |
Use 'which' rather than 'type' in maintainer scripts.
Diffstat (limited to 'debian/openssh-server.preinst')
-rw-r--r-- | debian/openssh-server.preinst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/openssh-server.preinst b/debian/openssh-server.preinst index e6c150ba5..43c4b57f9 100644 --- a/debian/openssh-server.preinst +++ b/debian/openssh-server.preinst | |||
@@ -118,7 +118,7 @@ EOF | |||
118 | # case the key is encrypted, which we need to fix | 118 | # case the key is encrypted, which we need to fix |
119 | chmod 600 $key | 119 | chmod 600 $key |
120 | ssh-keygen -u -f $key >/dev/null | 120 | ssh-keygen -u -f $key >/dev/null |
121 | if type restorecon >/dev/null 2>&1; then | 121 | if which restorecon >/dev/null 2>&1; then |
122 | restorecon "$key.pub" | 122 | restorecon "$key.pub" |
123 | fi | 123 | fi |
124 | } | 124 | } |