Have rcons check and set $HOME since sudo won't give an accurate looking home directory
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11963 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
bd4af1093f
commit
0deb64b53a
@ -1,4 +1,6 @@
|
||||
#!/bin/sh
|
||||
HOME=`getent passwd $(whoami)|cut -d: -f 6`
|
||||
export HOME
|
||||
if [ -z "$1" ] || [ "$1" = "-h" ]; then
|
||||
echo "rcons - remotely accesses the serial console of a node"
|
||||
echo "rcons <singlenode> [conserver] [-f]"
|
||||
|
Loading…
Reference in New Issue
Block a user