4 unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML).
5 push @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version.
17 $templates = "templates";
18 $memberfile = "users/members";
19 $sendmail = "| /usr/sbin/sendmail -t";
23 $lxdebug = LXDebug->new();
25 require "lx-erp.conf";
28 $form->{"script"} = "oe.pl";
30 $ENV{'HOME'} = getcwd() . "/$userspath";
32 my $template = OpenDocumentTemplate->new("", $form, \%myconfig, $userspath);
34 if (@ARGV && ($ARGV[0] eq "-r")) {
35 system("ps auxww | " .
37 "awk '/^www-data.*(soffice|Xvfb)/ { print \$2 }' | " .
42 exit(1) unless ($template->spawn_xvfb());
43 exit(2) unless ($template->spawn_openoffice());