File: //proc/self/root/scripts.20110531.215904.25158/installfpfreebsd
#!/usr/bin/perl
# cpanel - installfpfreebsd Copyright(c) 2010 cPanel, Inc.
# All rights Reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
system("/scripts/bsdi386compatinstall");
$result = `/usr/local/frontpage/version5.0/bin/owsadm.exe`;
if ( $result =~ /owsadm.exe/ ) { exit(); }
system( "fetch", "-o", "/usr/local/fp50.freebsd.tar.gz", "http://httpupdate.cpanel.net/fp/fp50.freebsd.tar.gz" );
chdir("/usr/local");
system( "tar", "xfzv", "/usr/local/fp50.freebsd.tar.gz" );
system("/usr/local/frontpage/version5.0/set_default_perms.sh");
unlink("/usr/local/fp50.freebsd.tar.gz");
unlink("/usr/local/frontpage/version5.0/apache-fp/suidkey");
system("ps -ea | tail -10 | sed -e 's/ //g' | cut -c10-137 > /usr/local/frontpage/version5.0/apache-fp/suidkey");
chown 0, 0, "/usr/local/frontpage/version5.0/apache-fp/suidkey";
chmod( 0600, "/usr/local/frontpage/version5.0/apache-fp/suidkey" );
chmod 0755, "/usr/local/frontpage";
chmod 0755, "/usr/local/frontpage/version5.0";
chown 0, 0, "/usr/local/frontpage/version5.0/apache-fp";
chmod 0711, "/usr/local/frontpage/version5.0/apache-fp";
chown 0, 10, "/usr/local/frontpage/version5.0/apache-fp/_vti_bin";
chmod 0755, "/usr/local/frontpage/version5.0/apache-fp/_vti_bin";
chown 0, 10, "/usr/local/frontpage/version5.0/apache-fp/_vti_bin/fpexe";
chmod 4755, "/usr/local/frontpage/version5.0/apache-fp/_vti_bin/fpexe";
system( "chown", "-R", "bin:bin", "/usr/local/frontpage/version5.0/exes" );
system( "chmod", "-R", "755", "/usr/local/frontpage/version5.0/exes" );
chmod 0755, "/usr/local/frontpage/version5.0/nls";
system("chmod 644 /usr/local/frontpage/version5.0/nls/*");
system("/scripts/initfpsuexec");