summarylogtreecommitdiffstats
path: root/opendds.install
blob: c2983adee690429fdb0668b3366e992712c6a5e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install(){
  # new password and equal group allocated in system range
  usr/bin/getent passwd tao >/dev/null 2>&1 || \
  usr/bin/useradd  -K SYS_UID_MIN=100 -K SYS_UID_MAX=499 \
                   -K SYS_GID_MIN=100 -K SYS_GID_MAX=499 \
                   -K USERGROUPS_ENAB=yes -r -U -d /run/tao -s /bin/false tao
  true
}

post_remove(){
  usr/bin/getent passwd tao >/dev/null 2>&1 && usr/bin/userdel  tao
  usr/bin/getent group  tao >/dev/null 2>&1 && usr/bin/groupdel tao
  true
}

# vim:set ts=2 sw=2 ft=sh et: