mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +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
|
||||
|
||||
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
|
||||
|
||||
# Recheck the version for scenarios were the VERSION wasn't known before this script was imported
|
||||
|
||||
Reference in New Issue
Block a user