summaryrefslogtreecommitdiff
path: root/security/drweb-sendmail/scripts/post-install
blob: 7e0a5a7d02dbbdd304bce1139b772d48e5cc54c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
ex=0
if ! id -u drweb > /dev/null 2>&1; then
  echo "You need an account \"drweb\" to install this package."
  echo "Please add it by hand (try \"man vipw\") and try again."
  echo ""
  echo "An example /etc/master.passwd entry is:"
  echo "drweb:*:426:426::0:0:Dr.Web Scanner:/nonexistent:/sbin/nologin"
  echo ""
  ex=1
fi
if ! grep -q "^drweb:" /etc/group; then
  echo "You need a group \"drweb\" to install this package."
  echo ""
  echo "An example /etc/group entry is:"
  echo "drweb:*:426:"
  echo ""
  ex=1
fi
[ "$ex" = "1" ] && exit 1
exit 0