#!/bin/sh -e # $HeadURL$ $LastChangedRevision$ . /usr/share/debconf/confmodule if [ "$1" = configure ]; then getent group backup > /dev/null || addgroup --quiet --system backup getent passwd backup > /dev/null || adduser --quiet --system --no-create-home --home /var/backups --shell /bin/sh --gid backup backup [ -d ~backup ] || mkdir -p ~backup fi # dh_installinit *only* installs code if there is *no* postinst to start # with! But we do have one to start with, because it needs to run the above # code! So in this case we need to add the stuff that dh_installinit would # otherwise add manually, ourselves, now. if [ -x "/etc/init.d/rdw" ]; then update-rc.d rdw defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d rdw start || exit $? else /etc/init.d/rdw start || exit $? fi fi