HOME=${HOME:-/home/root} export HOME
This would set $HOME to /home/root unless it’s already set and not empty.
See Related:
unix.stackexchange.com/questions/521326/home-not-set-when-running-bash-from-rc-local
This would set $HOME to /home/root unless it’s already set and not empty.
See Related:
unix.stackexchange.com/questions/521326/home-not-set-when-running-bash-from-rc-local