summarylogtreecommitdiffstats
path: root/letmein.install
blob: f0be19232f15877d054433e2607b86e4c7e02c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# systemd sysusers get created after post_install is executed, and we need to
# assign the config owner, so let's create the user manually
post_install() {
  useradd \
    --system \
    --no-create-home \
    --home /nonexistent \
    --shell /usr/bin/nologin \
    --user-group \
    letmeind

  chown :letmeind /etc/letmeind.conf
}

post_remove() {
  userdel letmeind || :
  groupdel letmeind || :
}