mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-06-23 17:29:08 +02:00
Allow calling setup.sh from other scripts
Calling setup.sh from other scripts fails, for example when adding a new mailbox: the input device is not a TTY
This commit is contained in:
parent
d3f7c56cdf
commit
30c57b944b
1 changed files with 1 additions and 1 deletions
2
setup.sh
2
setup.sh
|
@ -127,7 +127,7 @@ _docker_image_exists() {
|
|||
fi
|
||||
}
|
||||
|
||||
if [ -t 1 ] ; then
|
||||
if tty -s ; then
|
||||
USE_TTY="-ti"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue