Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
d643a2ff
Unverified
Commit
d643a2ff
authored
Mar 19, 2019
by
Valentin Brandl
Browse files
Check if mailcow path is set and fix directory check
parent
b581a171
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/mailcow.sh
View file @
d643a2ff
...
...
@@ -20,8 +20,15 @@ mailcow_deploy() {
_debug _cca
"
$_cca
"
_debug _cfullchain
"
$_cfullchain
"
_ssl_path
=
"
${
DEPLOY_MAILCOW_PATH
}
/data/assets/ssl/"
if
[
!
-d
"
$_ssl_path
"
;
]
then
_mailcow_path
=
"
${
DEPLOY_MAILCOW_PATH
}
"
if
[
-z
"
$_mailcow_path
"
]
;
then
_err
"Mailcow path is not found, please define DEPLOY_MAILCOW_PATH."
return
1
fi
_ssl_path
=
"
${
_mailcow_path
}
/data/assets/ssl/"
if
[
!
-d
"
$_ssl_path
"
]
;
then
_err
"Cannot find mailcow ssl path:
$_ssl_path
"
return
1
fi
...
...
@@ -39,7 +46,7 @@ mailcow_deploy() {
return
1
fi
DEFAULT_MAILCOW_RELOAD
=
"docker-compose restart postfix-mailcow dovecot-mailcow nginx-mailcow"
DEFAULT_MAILCOW_RELOAD
=
"
cd
${
_mailcow_path
}
&&
docker-compose restart postfix-mailcow dovecot-mailcow nginx-mailcow"
_reload
=
"
${
DEPLOY_MAILCOW_RELOAD
:-
$DEFAULT_MAILCOW_RELOAD
}
"
_info
"Run reload:
$_reload
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment