#!/bin/bash source setup/functions.sh source /etc/mailinabox.conf # load global vars echo "Installing miabldap-capture daemon..." conf="$STORAGE_ROOT/reporting/config.json" if [ ! -e "$conf" ]; then mkdir -p $(dirname "$conf") cat > "$conf" < /etc/systemd/system/miabldap-capture.service systemctl daemon-reload systemctl enable miabldap-capture systemctl start miabldap-capture