* added sisvinit unit service script * added systemshit unit service script * added debian packaging script and fiels in root dir * added spec file for shit rpm distros * added first intent of alpine packaging
33 lines
716 B
Bash
33 lines
716 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
if ! getent passwd multicraft >/dev/null; then
|
|
adduser \
|
|
--disabled-password \
|
|
--quiet \
|
|
--system \
|
|
--home /var/games/multicraft \
|
|
--no-create-home \
|
|
--gecos "multicraftserver" \
|
|
--ingroup games \
|
|
--force-badname multicraft
|
|
fi
|
|
install -d /var/games
|
|
install -d /var/games/multicraft
|
|
install -d /var/log/multicraft
|
|
chown multicraft:games /var/games/multicraft
|
|
chown multicraft:games /var/log/multicraft
|
|
;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
*)
|
|
echo "postinst called with unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|