Ignore:
Timestamp:
03/13/10 19:44:49 (2 years ago)
Author:
nuxwin
Message:
  • [SETUP] Added a new subroutine to clean the log after a successful update

process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/omega-1.0.5/engine/setup/ispcp-update

    r2696 r2697  
    212212 
    213213        # 
    214         ## Additional tasks - Begin 
    215         # 
    216  
    217         print STDOUT BOLD "\n\tAdditional tasks\n"; 
    218         $rs = additional_tasks(); 
    219  
    220         # 
    221         ## Additional tasks - End 
    222         # 
    223  
    224         # 
    225214        ## IspCP files permissions - Begin 
    226215        # 
     
    232221        # 
    233222        ## IspCP files permissions - End 
     223        # 
     224 
     225        # 
     226        ## Additional tasks - Begin 
     227        # 
     228 
     229        print STDOUT BOLD "\n\tAdditional tasks\n"; 
     230        $rs = additional_tasks(); 
     231 
     232        # 
     233        ## Additional tasks - End 
    234234        # 
    235235 
     
    824824        print STDOUT BOLD GREEN str_to_right('[done]', length($print)); 
    825825 
     826        $print = ' Log cleanup:'; 
     827        print STDOUT "\t" . $print; 
     828        cleanup(); 
     829        print STDOUT BOLD GREEN str_to_right('[done]', length($print)); 
     830 
    826831        push_el(\@main::el, 'additional_tasks()', 'Ending...'); 
    827832 
     
    982987} 
    983988 
     989# Cleanup 
     990sub cleanup { 
     991         
     992        push_el(\@main::el, 'cleanup()', 'Ending...'); 
     993 
     994        sys_command("$main::cfg{'CMD_RM'} -f /tmp/ispcp-update-*"); 
     995 
     996        push_el(\@main::el, 'cleanup()', 'Ending...'); 
     997} 
     998 
    984999# 
    9851000## Subroutines - End 
Note: See TracChangeset for help on using the changeset viewer.