}
}
close P;
- print "Your IP [$guessed_ip] : ";
- chomp($ip = <STDIN>);
+ unless (-f $xinetd) {
+ print "Your IP [$guessed_ip] : ";
+ chomp($ip = <STDIN>);
+ }
$ip ||= $guessed_ip;
}
}
chownr('fex',"$FEXHOME/spool/.");
+# fex-VM?
+if (open my $setup,'/root/bin/setup') {
+ while (<$setup>) {
+ exit if /#.*X-VM/;
+ }
+ close $setup;
+}
+
system(qw'perl -p -i -e',
's:href="/?FAQ.html":href="/FAQ/FAQ.html":',
"$FEXHOME/lib/fup.pl"
eval $conf;
-die "no \$spooldir in $fph\n" unless $spooldir;
+# die "no \$spooldir in $fph\n" unless $spooldir;
+$spooldir ||= '/home/fex/spool';
die "\$spooldir=$spooldir is not a directory, see $fph\n" unless -d $spooldir;
symlink $spooldir,"$FEXHOME/spool" unless -e "$FEXHOME/spool";
@sds1 = stat "$spooldir/.";
last if $admin =~ /.\@./;
print "admin must be a valid email address!\n";
}
+ $aa = "$spooldir/$admin/@";
while (not $admin_pw) {
print "F*EX admin password: ";
$admin_pw = <STDIN>;
if ($crontab !~ /fex_cleanup/) {
open $crontab,">fex.cron" or die "cannot create fex.cron - $!\n";
print {$crontab} $crontab,"\n";
+ print {$crontab} " 3 2 * * * exec $FEXHOME/bin/backup\n";
print {$crontab} " 3 3 * * * exec $FEXHOME/bin/fex_cleanup\n";
close $crontab;
- system qw(crontab -u fex fex.cron);
+ system qw'crontab -u fex fex.cron';
}
- chownr('fex:root',"$FEXHOME $FEXHOME/spool/.");
+ chownr('fex:root',$FEXHOME,"$FEXHOME/spool/.");
chmodr('go-r',"$FEXHOME/lib","$FEXHOME/cgi-bin","$FEXHOME/spool/.");
print "\n";