File: shadowsocks-libev.postrm

package info (click to toggle)
shadowsocks-libev 3.3.5%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,932 kB
  • sloc: ansic: 13,971; sh: 1,339; makefile: 200; python: 111
file content (29 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

set -e

case "$1" in
	purge)
		rm -f /etc/shadowsocks-libev/config.json
		if test ! -e /etc/shadowsocks-libev ; then
			# If the config directory does not exist, do nothing
			:
		else
			if test -d /etc/shadowsocks-libev ; then
				# If it is an empty directory, remove it
				rmdir /etc/shadowsocks-libev || true
			fi
		fi
		;;
	remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
		exit 0
		;;
	*)
		echo "postrm called with unknown argument \`$1'" >&2
		exit 0
		;;
esac

#DEBHELPER#

exit 0