shell init log permission fix
This commit is contained in:
parent
3018fb4e3b
commit
09d1587e9f
1 changed files with 0 additions and 3 deletions
|
|
@ -4,9 +4,6 @@ log_shell_init() {
|
|||
local uid="${UID:-}"
|
||||
[[ -n "$uid" ]] || uid="$(id -u 2>/dev/null || echo unknown)"
|
||||
|
||||
# Avoid a shared logfile in /tmp: if it is ever created root-owned (e.g. from
|
||||
# a root shell), user shells will spam "Permission denied" on every launch.
|
||||
#
|
||||
# Override with:
|
||||
# export NANUQSAURUS_SHELL_INIT_LOG_FILE=/path/to/log
|
||||
local log_file="${NANUQSAURUS_SHELL_INIT_LOG_FILE:-/tmp/shell-init-${uid}.log}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue