add mailserver option handling
This commit is contained in:
parent
f74879e834
commit
b23afe500d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user