#!/bin/bash

cat << EOF
#!/bin/sh

set -e

case "\$1" in
    configure)
        adduser --system --quiet --group disco --disabled-password --shell /bin/bash --home ${RELSRV} --no-create-home
        chown disco:disco -R ${RELSRV}
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument: \$1" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# for details, see http://www.debian.org/doc/debian-policy/

#DEBHELPER#

exit 0
EOF
#!/bin/bash

cat << EOF
#!/bin/sh

set -e

case "\$1" in
    configure)
        adduser --system --quiet --group disco --disabled-password --shell /bin/bash --home ${RELSRV} --no-create-home
        chown disco:disco ${RELSRV}
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument: \$1" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# for details, see http://www.debian.org/doc/debian-policy/

#DEBHELPER#

exit 0
EOF
Remove recursive option from chown; breaks upgrades on large existing ddfs.
Remove recursive option from chown; breaks upgrades on large existing ddfs.
