Changeset 13914


Ignore:
Timestamp:
2009-01-07T05:38:57+01:00 (9 years ago)
Author:
nbd
Message:

fix $HOME in /etc/profile (#4424)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/profile

    r8845 r13914  
    33 
    44export PATH=/bin:/sbin:/usr/bin:/usr/sbin 
    5 export HOME=/root 
     5export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) 
     6export HOME=${HOME:-/root} 
    67export PS1='\u@\h:\w\$ ' 
    78 
Note: See TracChangeset for help on using the changeset viewer.