#!/bin/sh set -e EVFILE=/etc/borg-family/envvars if [ "$1" = configure ]; then . /usr/share/debconf/confmodule unset BORG_REPO db_get borg-family/borg-repo && BORG_REPO="$RET" db_stop [ -f "$EVFILE" ] || install -m 644 /usr/share/doc/borg-family/examples/envvars "$EVFILE" [ -n "$BORG_REPO" ] && sed --in-place -e 's#^export BORG_REPO=.*$#export BORG_REPO="'$BORG_REPO'"#' -- "$EVFILE" fi #DEBHELPER#