]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Render.pm
fixes
[ikiwiki.git] / IkiWiki / Render.pm
index 8375cfe7a9d3e984253f417415e12a8927baa51f..23f6b1c723d8f97b3bc6c3ac2f24ea4cca9067c5 100644 (file)
@@ -407,9 +407,10 @@ sub estcfg () { #{{{
        );
        print TEMPLATE $template->output;
        close TEMPLATE;
-       symlink("/usr/lib/estraier/estseek.cgi",
-               "$estdir/".basename($config{cgiurl})) ||
-                       error("symlink: $!");
+       $cgi="$estdir/".basename($config{cgiurl});
+       unlink($cgi);
+       symlink("/usr/lib/estraier/estseek.cgi", $cgi) ||
+               error("symlink $cgi: $!");
 } # }}}
 
 sub estcmd ($;@) { #{{{