docker-compose and mailcow-config accept full path
This commit is contained in:
parent
b5247a085e
commit
6f59804cfc
@ -318,10 +318,10 @@ while [ $# -gt 0 ]; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-d|--docker-compose)
|
-d|--docker-compose)
|
||||||
# path to mailcow docker-compose file
|
# FULL path to mailcow docker-compose file
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
if [ -f "$2" ]; then
|
if [ -f "$2" ]; then
|
||||||
mcDockerCompose="${2%/}"
|
mcDockerCompose="$2"
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
badParam dne "$@"
|
badParam dne "$@"
|
||||||
@ -331,10 +331,10 @@ while [ $# -gt 0 ]; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-m|--mailcow-config)
|
-m|--mailcow-config)
|
||||||
# path to mailcow configuration file
|
# FULL path to mailcow configuration file
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
if [ -f "$2" ]; then
|
if [ -f "$2" ]; then
|
||||||
mcConfig="${2%/}"
|
mcConfig="$2"
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
badParam dne "$@"
|
badParam dne "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user