#!/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 hide_output systemctl daemon-reload hide_output systemctl enable miabldap-capture restart_service miabldap-capture