-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdotdrop.sh
More file actions
executable file
·26 lines (24 loc) · 810 Bytes
/
dotdrop.sh
File metadata and controls
executable file
·26 lines (24 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -e -o pipefail
case "$(uname)" in
Darwin) export DOTDROP_PROFILE=macOS
;;
Linux) source /etc/os-release
if [ "x$ID" = xdebian ] || [ "x$ID_LIKE" = xdebian ]
then if [ -z "$MAIL_HOSTNAME" ] && command -V postconf &> /dev/null
then export MAIL_HOSTNAME="$(postconf -h mydomain)"
fi
if [ -n "$MAIL_HOSTNAME" ]
then export DOTDROP_PROFILE=debian-mail
else export DOTDROP_PROFILE=debian
fi
else echo "[WARNING] Unsupported distribution" >&2
export DOTDROP_PROFILE=base
fi
;;
*) echo "Unknown OS: $(uname)" >&2
exit 1
;;
esac
export DOTDROP_NOBANNER=1
dotdrop "$@"