add mailserver option handling

This commit is contained in:
Asif Bacchus 2020-09-14 16:07:42 -06:00
parent f74879e834
commit b23afe500d

View File

@ -181,6 +181,22 @@ while [ $# -gt 0 ]; do
volume_ldif="$2" volume_ldif="$2"
shift 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) --backupdir)
# location of backup files to restore # location of backup files to restore
if [ -z "$2" ]; then if [ -z "$2" ]; then