Show
Ignore:
Timestamp:
10/17/07 23:39:27 (11 months ago)
Author:
rats
Message:

* Updated fedora
* Fixed #783: added Makefile.gentoo
* Fixed #784: ispcp-setup fails with compilation errors
* Fixed #785: bad test into configs/init.d/Makefile
* Fixed #788: mistakes with the php4-fcgi-starter.tpl
* Updated PMA to 2.11.1.2 (#789)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/engine/ispcp-dmn-mngr

    r877 r878  
    22002200 
    22012201                return $rs if ($rs != 0); 
    2202  
    2203                 $starter_tpl = ''; 
     2202        } 
     2203 
     2204        if (!(-e "$starter_dir/$dmn_name/php4-fcgi-starter")) { 
     2205                my $starter_tpl = undef; 
     2206                my $cfg_dir = "$main::cfg{'CONF_DIR'}/fcgi/parts"; 
    22042207 
    22052208                ($rs, $starter_tpl) = get_tpl($cfg_dir, 'php4-fcgi-starter.tpl'); 
    22062209                return $rs if ($rs != 0); 
    22072210 
    2208                 %tag_hash = ( 
     2211                my %tag_hash = ( 
    22092212                                                '{PHP_STARTER_DIR}' => $starter_dir, 
    22102213                                                '{PHP4_FASTCGI_BIN}' => $main::cfg{'PHP4_FASTCGI_BIN'}, 
     
    24372440 
    24382441                return $rs if ($rs != 0); 
    2439  
    2440                 $starter_tpl = ''; 
     2442        } 
     2443        if (!(-e "$starter_dir/$dmn_name/php4-fcgi-starter")) { 
     2444                my $starter_tpl = undef; 
     2445                my $cfg_dir = "$main::cfg{'CONF_DIR'}/fcgi/parts"; 
    24412446 
    24422447                ($rs, $starter_tpl) = get_tpl($cfg_dir, 'php4-fcgi-starter.tpl'); 
    24432448                return $rs if ($rs != 0); 
    24442449 
    2445                 %tag_hash = ( 
     2450                my  %tag_hash = ( 
    24462451                                                '{PHP_STARTER_DIR}' => $starter_dir, 
    24472452                                                '{PHP4_FASTCGI_BIN}' => $main::cfg{'PHP4_FASTCGI_BIN'}, 
     
    24542459                ($rs, $rdata) = store_file( 
    24552460                                                                        "$starter_dir/$dmn_name/php4-fcgi-starter", 
    2456                                                                         $starter_tpl
     2461                                                                        $$cfg
    24572462                                                                        $sys_user, 
    24582463                                                                        $sys_group, 
     
    39903995    my ($dmn_data) = @_; 
    39913996 
    3992     my ($rs, $awstats_b, $awstats_entry, $awstats_e) = (undef, undef, undef); 
     3997    my ($rs, $awstats_b, $awstats_entry, $awstats_e) = (undef, undef, undef, undef); 
    39933998 
    39943999    push_el(\@main::el, 'dmn_add_awstats_cron()', 'Starting...'); 
     
    41434148    my ($dmn_data) = @_; 
    41444149 
    4145     my ($rs, $rdata, $awstats_b, $awstats_entry, $awstats_e) = (undef, undef, undef, undef, undef); 
     4150    my ($rs, $awstats_b, $awstats_e) = (undef, '', '', ''); 
    41464151 
    41474152    push_el(\@main::el, 'dmn_del_awstats_cron()', 'Starting...'); 
     
    41774182         $rs, 
    41784183         $dmn_awstats_b, 
    4179          $dmn_awstats_entry, 
    41804184         $dmn_awstats_e 
    41814185        ) = get_tpl( 
    41824186                                $tpl_dir, 
    41834187                                'dmn_awstats_b.tpl', 
    4184                                 'dmn_awstats_entry.tpl', 
    41854188                                'dmn_awstats_e.tpl' 
    41864189                                ); 
     
    41924195    # 
    41934196 
    4194     my %tag_hash = ( 
    4195                     '{DMN_NAME}' => $dmn_name, 
    4196                     '{MINUTE}' => $cronjob_minute, 
    4197                     '{HOUR}' => $cronjob_hour 
    4198                    ); 
     4197        my %tag_hash = ( '{DMN_NAME}' => $dmn_name ); 
    41994198 
    42004199    ( 
     
    42174216    # 
    42184217 
    4219     my ($sys, $working) = (undef, undef); 
     4218    my ($sys, $working, $rdata) = (undef, undef, undef); 
    42204219 
    42214220    ($rs, $working) = get_file($working_cfg);