mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-11-13 08:00:07 +01:00
Only default to logging out to tty if tty exists as a character device
This commit is contained in:
1 file changed
+5
-1
@@ -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