mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix check which wasn't working in docker started from ci
This commit is contained in:
parent
be8342183c
commit
bd431cd7ea
@ -102,11 +102,11 @@ TODAY=$(date +"%Y-%m-%d")
|
|||||||
\cp $SCRIPT_DIR/nginx/update-page/updating.html.template $UPDATE_HTML
|
\cp $SCRIPT_DIR/nginx/update-page/updating.html.template $UPDATE_HTML
|
||||||
|
|
||||||
# store real console stream in fd 3
|
# store real console stream in fd 3
|
||||||
if [ -e /dev/tty ]; then
|
if test -t 1; then
|
||||||
# on normal systems
|
# stdout is a TTY - normal console
|
||||||
exec 3> /dev/tty
|
exec 3> /dev/tty
|
||||||
else
|
else
|
||||||
# on docker
|
# stdout is not a TTY - probably Docker or CI
|
||||||
exec 3> /proc/$$/fd/1
|
exec 3> /proc/$$/fd/1
|
||||||
fi
|
fi
|
||||||
# redirect all output of the script to the UPDATE_HTML
|
# redirect all output of the script to the UPDATE_HTML
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user