> Patch attached. Please, test it and let me know.
>
> Currently there is one redundant call `chdir' - but, I didn't want to
> mess with the script
> much.
Wrong patch got attached in the previous mail. This is the correct one.
Didar.
--- /usr/sbin/lighty-enable-mod 2010-08-31 00:18:29.000000000 +0530
+++ lighty-enable-mod 2010-10-20 16:42:46.000000000 +0530
@@ -79,8 +79,11 @@
print qq{Enabling $do: };
my $st = stat($target);
+ my $relative;
unless ( -f $target ) {
- if (symlink($available{$do}, $target)) {
+ $relative = sprintf("../conf-available/%s", basename($available{$do}));
+ chdir($confdir.'/conf-enabled');
+ if (symlink($relative, $target)) {
print "ok\n";
}
else {