Changed assumption that xcatclientnnr would be in path and added sourcing of /etc/profile.d/xcat.sh to ensure environment variable would be set.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5688 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
25f1f7ce9d
commit
5106ece21f
@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
#test
|
||||
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
||||
|
||||
# Opens the specified table in the users editor and writes changes back to the db
|
||||
@ -11,6 +12,9 @@ function cexit {
|
||||
}
|
||||
trap cexit 2 15
|
||||
|
||||
#Source for environment variables
|
||||
source /etc/profile.d/xcat.sh
|
||||
|
||||
TABLE=$1
|
||||
if [ -z "$TABEDITOR" ]; then
|
||||
TABEDITOR=$EDITOR
|
||||
@ -27,7 +31,7 @@ fi
|
||||
|
||||
# Dump the table to a temporary file
|
||||
mkdir -p /tmp/tabedit.$$/
|
||||
xcatclientnnr tabdump $TABLE > /tmp/tabedit.$$/$TABLE.csv
|
||||
$XCATROOT/bin/xcatclientnnr tabdump $TABLE > /tmp/tabedit.$$/$TABLE.csv
|
||||
|
||||
# Save the checksum to see if it actually changes..
|
||||
if [ `uname` = "AIX" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user