summarylogtreecommitdiffstats
path: root/ntripcaster.install
blob: 05cb8566f24b77cac4e6cb45f5788b60a1b588f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
post_install() {
  getent group ntrip >/dev/null || groupadd -r ntrip
  getent passwd ntrip >/dev/null || useradd -r -g ntrip -d /usr/share/ntripcaster -s /usr/bin/nologin -c "NTRIP Caster Daemon" ntrip
  systemd-tmpfiles --create /usr/lib/tmpfiles.d/ntripcaster-tmpfiles.conf
}

post_upgrade() {
  systemd-tmpfiles --create /usr/lib/tmpfiles.d/ntripcaster-tmpfiles.conf	
}

post_remove() {
    echo "NOTE: The 'ntrip' user and group have not been removed."
    echo "      To remove manually: userdel ntrip && groupdel ntrip"
}