summaryrefslogtreecommitdiffstats
path: root/retiolum/bin
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-04-20 22:18:28 +0200
committertv <tv@nomic.retiolum>2014-04-20 22:18:28 +0200
commit59c99ac37ce28d3684cf5b61180c588ff8408762 (patch)
tree779e18f8d0cf824859c74d1d792dd1e415d1d32a /retiolum/bin
parent5b8629ac299d4578fc163dc90b9ec9ec965ba32b (diff)
update-retiolum-hosts: remove readlink
Diffstat (limited to 'retiolum/bin')
-rwxr-xr-xretiolum/bin/update-retiolum-hosts2
1 files changed, 1 insertions, 1 deletions
diff --git a/retiolum/bin/update-retiolum-hosts b/retiolum/bin/update-retiolum-hosts
index eb57af3f..0eae1c29 100755
--- a/retiolum/bin/update-retiolum-hosts
+++ b/retiolum/bin/update-retiolum-hosts
@@ -8,7 +8,7 @@ if test "${nosudo-false}" != true -a `id -u` != 0; then
fi
# cd //retiolum
-cd $(dirname $(readlink -f $0))/..
+cd -P "$(dirname "$0")/.."
mkdir -p /etc/tinc/retiolum/hosts
rsync -va -I --delete hosts/ /etc/tinc/retiolum/hosts/