blob: c6250ba4f93d5a7e976eb79f87ae69c8db17f7b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
post_install() {
getent group tshock >/dev/null 2>&1 || groupadd tshock
getent passwd tshock >/dev/null 2>&1 || useradd -g tshock -d /srv/tshock/ -s /bin/bash tshock
chown -R tshock:tshock /srv/tshock/
echo ">>> Run \`sudo -u tshock /srv/tshock/tshock.sh install\` and create a world named World1
You can then start tshock@default.service"
}
post_upgrade() {
post_install $1
}
post_remove() {
if getent passwd tshock >/dev/null 2>&1; then
userdel tshock
fi
if getent group tshock >/dev/null 2>&1; then
groupdel tshock
fi
}
|