From e2120a56ae8d53bbcb1070daea3bae899f6bac6c Mon Sep 17 00:00:00 2001 From: "J. Elfring (i)" Date: Mon, 22 May 2023 14:38:16 +0200 Subject: [PATCH] wdavmaild --- simpleDots/bin/wdavmaild | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 simpleDots/bin/wdavmaild diff --git a/simpleDots/bin/wdavmaild b/simpleDots/bin/wdavmaild new file mode 100755 index 0000000..4affdbd --- /dev/null +++ b/simpleDots/bin/wdavmaild @@ -0,0 +1,17 @@ +#!/bin/bash +############################################################################ +## +# wddavmaild +# +# +# + +## Check for a tmux session with docker fo:wqr root is already running +if tmux has-session -t wdavmaild +then + echo "A wdavmaild session is already running. Attaching." + tmux attach -t wdavmaild +else + echo "Starting a new wdavmaild tmux-session." + tmux new-session -d -s wdavmaild davmail ~/.local/etc/davmail.conf +fi