summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-06 23:00:03 +0200
committertv <tv@xso>2011-09-06 23:00:03 +0200
commit229b805732cc34c30bb287aa750fbd14df94cc81 (patch)
tree365a9875f89c99912bb27726ba7d98bf97792fb1
parent5c4c3f42724812dd3426da5ba3d4cba44bf06803 (diff)
//retiolum update-retiolum-hosts: cd //retiolum first
This commit enables to call the script from everywhere...^_^
-rwxr-xr-xretiolum/bin/update-retiolum-hosts3
1 files changed, 3 insertions, 0 deletions
diff --git a/retiolum/bin/update-retiolum-hosts b/retiolum/bin/update-retiolum-hosts
index 7b2fa0e5..1fecfe15 100755
--- a/retiolum/bin/update-retiolum-hosts
+++ b/retiolum/bin/update-retiolum-hosts
@@ -7,6 +7,9 @@ if test "${nosudo-false}" != true -a `id -u` != 0; then
exit 23 # go to hell
fi
+# cd //retiolum
+cd $(dirname $(readlink -f $0))/..
+
mkdir -v -p /etc/tinc/retiolum/hosts
cp -v -r hosts/* /etc/tinc/retiolum/hosts
pkill -HUP tincd