fixed relative destination directory
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Wed, 08 Apr 2015 14:15:17 +0200
changeset 15 cf206250b727
parent 14 798ff6b6ada2
child 16 c073d153fc62
fixed relative destination directory
ldap-backup
--- a/ldap-backup	Fri Jan 30 00:55:43 2015 +0100
+++ b/ldap-backup	Wed Apr 08 14:15:17 2015 +0200
@@ -11,7 +11,7 @@
 
 if test -t 0; then
 	# terminal/interactive
-	destination=${1:?Need destination directory}
+	destination=$(readlink -f ${1:?Need destination directory})
 else
 	# cron
 	destination=${1:-/var/backups/ldap}