Changeset 1096

Show
Ignore:
Timestamp:
04/02/08 01:38:11 (8 months ago)
Author:
rats
Message:

small fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/engine/setup/ispcp-setup-methods.pl

    r1095 r1096  
    4444        return $rs if ($rs != 0); 
    4545 
    46         my $qmsg = "\tNext your are asked to anter a "fully qualified hostname" (FQHN).\n" . 
     46        my $qmsg = "\tNext your are asked to anter a \"fully qualified hostname\" (FQHN).\n" . 
    4747               "\tFor more infos read http://en.wikipedia.org/wiki/FQDN.\n\n" . 
    4848               "\tPlease enter fully qualified hostname. [$hostname]: "; 
  • trunk/engine/setup/ispcp-update

    r1083 r1096  
    784784        push_el(\@main::el, 'patch_ispcp_rc4()', 'Starting...'); 
    785785 
    786     print STDOUT "\tNothing to do."; 
     786        # update ispcp.conf 
     787        my $cfg_file = $main::cfg_file; 
     788        my $old_cfg_file = undef; 
     789        if (defined($main::ua{'old_cfg_file'})) { 
     790                print STDOUT "\tUpgrading system values..."; 
     791 
     792                $rs = update_conf($old_cfg_file, $cfg_file); 
     793                if ($rs != 0) { 
     794                        exit_werror("failed to get $cfg_file or $old_cfg_file"); 
     795                } 
     796 
     797                # save into /etc/ispcp/ispcp.conf 
     798                $rs = store_conf(); 
     799                if ($rs != 0) { 
     800                        exit_werror("Storing new ispcp.conf failed!"); 
     801                } 
     802                print STDOUT "done\n"; 
     803        } 
    787804 
    788805        push_el(\@main::el, 'patch_ispcp_rc4()', 'Ending...');