* move debian directory to misc/debian * move rmp shit distro directory the spec file and changelog * move the alpine directory in misc with a minimal started files * still there's an error on spec file for name of the tarball * all of those files it depends of the previous commit that gives init/shistemd
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#
|