[Jifty-commit] r2350 - jifty/trunk/lib/Jifty/Script
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Dec 8 10:46:57 EST 2006
Author: audreyt
Date: Fri Dec 8 10:46:57 2006
New Revision: 2350
Modified:
jifty/trunk/lib/Jifty/Script/Server.pm
Log:
* Jifty::Script::Server - Remedy for the edge error case where var/
is missing, which used to cause mysterious error messages.
Modified: jifty/trunk/lib/Jifty/Script/Server.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Script/Server.pm (original)
+++ jifty/trunk/lib/Jifty/Script/Server.pm Fri Dec 8 10:46:57 2006
@@ -77,6 +77,9 @@
if (-d $data_dir) {
File::Path::rmtree(["$data_dir/cache", "$data_dir/obj"]);
}
+ else {
+ File::Path::mkpath([$data_dir]);
+ }
$SIG{TERM} = sub { exit };
open my $fh, '>', PIDFILE or die $!;
More information about the Jifty-commit
mailing list