diff options
author | Colin Watson <cjwatson@debian.org> | 2003-09-01 19:20:55 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2003-09-01 19:20:55 +0000 |
commit | e086afa991390f2ca3373d39fc8ffafa0f031ffb (patch) | |
tree | 193cbfce20217c05c9275b0e1bdc9b08b9cd61b2 /debian/postinst | |
parent | 80cd0658f4014053b9ea9a7ed4932a8284031f08 (diff) |
Debian release 3.6.1p2-4.
Diffstat (limited to 'debian/postinst')
-rw-r--r-- | debian/postinst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debian/postinst b/debian/postinst index b47a9d381..292023999 100644 --- a/debian/postinst +++ b/debian/postinst | |||
@@ -233,7 +233,7 @@ create_alternatives() { | |||
233 | } | 233 | } |
234 | 234 | ||
235 | setup_sshd_user() { | 235 | setup_sshd_user() { |
236 | if ! getent passwd | grep -q '^sshd:'; then | 236 | if ! getent passwd sshd >/dev/null; then |
237 | adduser --quiet --system --no-create-home --home /var/run/sshd sshd | 237 | adduser --quiet --system --no-create-home --home /var/run/sshd sshd |
238 | fi | 238 | fi |
239 | } | 239 | } |
@@ -262,14 +262,14 @@ set_sshd_permissions() { | |||
262 | fix_ssh_group() { | 262 | fix_ssh_group() { |
263 | # Try to remove non-system group mistakenly created by 1:3.5p1-1. | 263 | # Try to remove non-system group mistakenly created by 1:3.5p1-1. |
264 | # set_ssh_agent_permissions() below will re-create it properly. | 264 | # set_ssh_agent_permissions() below will re-create it properly. |
265 | if getent group | grep -q '^ssh:'; then | 265 | if getent group ssh >/dev/null; then |
266 | delgroup --quiet ssh || true | 266 | delgroup --quiet ssh || true |
267 | fi | 267 | fi |
268 | } | 268 | } |
269 | 269 | ||
270 | 270 | ||
271 | set_ssh_agent_permissions() { | 271 | set_ssh_agent_permissions() { |
272 | if ! getent group | grep -q '^ssh:'; then | 272 | if ! getent group ssh >/dev/null; then |
273 | addgroup --system --quiet ssh | 273 | addgroup --system --quiet ssh |
274 | fi | 274 | fi |
275 | if ! [ -x /usr/sbin/dpkg-statoverride ] || \ | 275 | if ! [ -x /usr/sbin/dpkg-statoverride ] || \ |