#!/usr/bin/env bash # # This script must be run as the same user running offlineimap, which is # preferably a non-privileged user. # # This script should be daemonized (forked to bg) or used as the value of # the ExecStart= directive in a systemd service file. set -euxo pipefail # If "init" is supplied as arg $1, initialize the bridge. if [[ "$1" == "init" ]]; then # Initialize pass gpg --generate-key --batch <