1
0
Fork 0

add mailserver option handling

This commit is contained in:
Asif Bacchus 2020-09-14 16:07:42 -06:00
parent f74879e834
commit b23afe500d
1 changed files with 16 additions and 0 deletions

View File

@ -181,6 +181,22 @@ while [ $# -gt 0 ]; do
volume_ldif="$2"
shift
;;
--mailserver)
# mailserver for IMAP/S password verification
if [ -z "$2" ]; then
consoleError '1' 'You must specify a mailserver hostname when using --mailserver.'
fi
mailserver="$2"
shift
;;
--mailserver-port)
# specify IMAP/S port for mailserver
if [ -z "$2" ]; then
consoleError '1' 'You must specify a port when using --mailserver-port.'
fi
mailserver_port="$2"
shift
;;
--backupdir)
# location of backup files to restore
if [ -z "$2" ]; then