mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 10:12:53 +01:00
Only default to logging out to tty if tty exists as a character device
This commit is contained in:
@@ -105,7 +105,11 @@ update_docker_containers() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$LOG_FILE" ]; then
|
if [ -z "$LOG_FILE" ]; then
|
||||||
LOG_FILE=/dev/tty
|
if [ -c /dev/tty ]; then
|
||||||
|
LOG_FILE=/dev/tty
|
||||||
|
else
|
||||||
|
LOG_FILE=/dev/null
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Recheck the version for scenarios were the VERSION wasn't known before this script was imported
|
# Recheck the version for scenarios were the VERSION wasn't known before this script was imported
|
||||||
|
|||||||
Reference in New Issue
Block a user