File: postinst

package info (click to toggle)
scanlogd 2.2.5-3.3
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 128 kB
  • ctags: 89
  • sloc: ansic: 492; sh: 89; makefile: 80
file content (20 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

update-rc.d scanlogd defaults >/dev/null

if [ -d /home/scanlogd ] ; then # Clean up after #668722
        rmdir /home/scanlogd # If for some reason the directory isn't empty
                             # then the directory shouldn't be unconditionally
                             # removed
fi

# scanlogd needs a user
adduser --system --home /var/lib/scanlogd --no-create-home --quiet scanlogd || true

if which invoke-rc.d >/dev/null 2>&1; then
    invoke-rc.d scanlogd start
else
    /etc/init.d/scanlogd start
fi

#DEBHELPER#