summaryrefslogtreecommitdiff
path: root/bin/updateConfig.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/updateConfig.sh')
-rwxr-xr-xbin/updateConfig.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/updateConfig.sh b/bin/updateConfig.sh
index 05056c1..f1cd537 100755
--- a/bin/updateConfig.sh
+++ b/bin/updateConfig.sh
@@ -1,5 +1,9 @@
#!/bin/bash
+# goto root dir (this script resides in src)
+BASEDIR=`dirname $(readlink -f $0)`
+cd ${BASEDIR}/../
+
HOSTFILE=~/pssh.hosts
if [ -f ${HOSTFILE} ]; then