Patch apply
# $errnum = system(“$config{‘update_system_cmd’} $install_file doit_in_foreground >/dev/null 2>&1”);
#`echo Start install parameters – update.cgi – force install:$force_install >> /tmp/gui.dbg`;
my $TMP_LOG = “/tmp/tmp_install_patch.log”;
`echo “” > $TMP_LOG`;
my $cmd_out = system(“$config{‘update_system_cmd’} $install_file $force_install install 1>/dev/null 2>$TMP_LOG &”);
print qq(
);
print qq(
Patch Apply |
$vv |
$vv |
);
`cat $TMP_LOG >> $INSTALL_LOG`;
my $sta = grep /Succeed/, $TMP_LOG;
button_table_start();
if(!$sta){
# print “sta=$stan”;
print “Patch install successfully, please reboot your systemn”;
print qq(
n);
print qq(
write_action_button(“reboot”,$software_26,”javascript:document.rebootForm.submit()”);
print qq(
exit 0;
}
else{
print “Install failedn”;
write_action_button(“back”,”<< $software_10","index.cgi"); print "sta=$stan"; exit 0; } button_table_end(); `rm -rf $TMP_LOG`;