eventscript: Fix link creation failure if the link already exist but the target path...
authorSrikrishan Malik <srimalik@in.ibm.com>
Thu, 31 Oct 2013 06:24:58 +0000 (11:54 +0530)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 1 Nov 2013 02:09:05 +0000 (13:09 +1100)
Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>
config/events.d/60.ganesha

index aa7db90b8cd7a633b6d8a7c96cb3122cae908069..744c5ceb0a995486640ffe046d40c032a69df4c1 100755 (executable)
@@ -79,7 +79,7 @@ create_ganesha_recdirs ()
             fi
         fi
     else
-        if ! ln -s $MNTPT/.ganesha  $GANRECDIR ; then
+        if ! ln -sf $MNTPT/.ganesha  $GANRECDIR ; then
             echo "ln failed"
         fi
     fi