blob: de176df49bef5731dc8cc6b537b0d526b0ffa854 (
plain)
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
|
#!/bin/sh
set -e
case "$1" in
configure)
# Create minecproxy user (if not already done)...
adduser --system --group --home /var/lib/minecproxy \
--quiet --gecos "Minecraft proxy daemon" minecproxy
# ...create the directory (could've been removed during a purge
# but the user isn't, and adduser won't recreate the dir then)...
mkdir /var/lib/minecproxy > /dev/null 2>&1 || true
# ...change traditional Unix permissions permissions...
chown minecproxy:minecproxy /var/lib/minecproxy
# ...and restore SELinux context.
if which restorecon >/dev/null 2>&1; then
restorecon /var/lib/minecproxy
fi
;;
esac
#DEBHELPER#
exit 0
|