File: snapclient.postrm

package info (click to toggle)
snapcast 0.31.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,012 kB
  • sloc: cpp: 37,729; python: 2,543; sh: 455; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

#DEBHELPER#

USERNAME=_snapclient
HOMEDIR=/var/lib/snapclient

if [ "$1" = "purge" ]; then
  rm -r $HOMEDIR

  if [ -x "$(command -v deluser)" ]; then
    deluser --quiet --system $USERNAME > /dev/null || true
  else
    echo >&2 "not removing $USERNAME system account because deluser command was not found"
  fi
fi