blob: 6bdab4e4a0bd639a7685399fa3e71fe439f16758 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
post_install() {
getent group papermc > /dev/null 2>&1 || groupadd papermc
getent passwd papermc > /dev/null 2>&1 || useradd -g papermc -d /srv/papermc -s /bin/bash papermc
chown -R papermc:papermc /srv/papermc/
echo "For the server to start you have to accept the EULA in ${_server_root}/eula.txt !"
echo "The EULA file is generated after the first server start."
}
post_upgrade() {
post_install $1
}
post_remove() {
if getent passwd papermc >/dev/null 2>&1; then
userdel papermc
fi
if getent group papermc >/dev/null 2>&1; then
groupdel papermc
fi
}
|