#!/bin/sh set -e if [ "$1" = configure ]; then if ! getent passwd mirrorbits >/dev/null && ! command -v systemd-sysusers >/dev/null; then adduser --system --group --quiet \ --gecos "Mirrorbits System User" \ --home /var/lib/mirrorbits \ --shell /bin/bash \ mirrorbits fi fi # Automatically added by dh_installsysusers/13.31 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then systemd-sysusers ${DPKG_ROOT:+--root="$DPKG_ROOT"} mirrorbits.conf fi # End automatically added section # Automatically added by dh_installsystemd/13.31 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then if deb-systemd-helper debian-installed 'mirrorbits.service'; then # The following line should be removed in trixie or trixie+1 deb-systemd-helper unmask 'mirrorbits.service' >/dev/null || true if deb-systemd-helper --quiet was-enabled 'mirrorbits.service'; then # Create new symlinks, if any. deb-systemd-helper enable 'mirrorbits.service' >/dev/null || true fi fi # Update the statefile to add new symlinks (if any), which need to be cleaned # up on purge. Also remove old symlinks. deb-systemd-helper update-state 'mirrorbits.service' >/dev/null || true fi # End automatically added section exit 0