Skip to content

Commit

Permalink
Several fixes, review +++
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxwin committed Jan 15, 2019
1 parent 0d006b3 commit 5a11af1
Show file tree
Hide file tree
Showing 64 changed files with 371 additions and 419 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -31,6 +31,6 @@ following copyright:
All rights reserved
```

The design material and the "i-MSCP" trademark stay the property of their
The design material and the "i-MSCP" trademark is the property of their
authors. Reuse of them without prior consent of their respective authors is
strictly prohibited.
6 changes: 3 additions & 3 deletions autoinstaller/Functions.pm
Expand Up @@ -354,10 +354,10 @@ i-MSCP was designed for professional Hosting Service Providers (HSPs), Internet
Unless otherwise stated all source code and material is licensed under LGPL 2.1 and has the following copyright:
\\Zb© 2010-@{[ (localtime)[5]+1900 ]}, Laurent Declercq (i-MSCP™)
All rights reserved\\ZB
\\Zb© 2010-@{[ (localtime)[5]+1900 ]}, Laurent Declercq (i-MSCP™)
All rights reserved\\ZB
The design material and the "i-MSCP" trademark stay the property of their authors. Reuse of them without prior consent of their respective authors is strictly prohibited.
The design material and the "i-MSCP" trademark is the property of their authors. Reuse of them without prior consent of their respective authors is strictly prohibited.
EOF
}

Expand Down
3 changes: 1 addition & 2 deletions configs/debian/apache/00_nameserver.conf
Expand Up @@ -57,8 +57,7 @@ ErrorDocument 503 /errors/503.html
## Error logging

LogLevel warn
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" vlogger
CustomLog "|/usr/local/sbin/vlogger -i -n -t access.log -d {VLOGGER_CONF} {HTTPD_LOG_DIR}" vlogger
CustomLog "|{ENGINE_ROOT_DIR}/bin/imscp-vlogger -i -n -t access.log -d {VLOGGER_CONF} {HTTPD_LOG_DIR}" "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O"

# SECTION custom BEGIN.
# SECTION custom END.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions configs/debian/apache/install.xml
Expand Up @@ -8,8 +8,7 @@
<copy_config>${SYSTEM_CONF}/apache/00_imscp.conf</copy_config>
<copy_config>${SYSTEM_CONF}/apache/00_nameserver.conf</copy_config>
<copy_config>${SYSTEM_CONF}/apache/apache.data.dist</copy_config>
<copy_config>${SYSTEM_CONF}/apache/imscp-vlogger.conf.tpl</copy_config>
<copy_config>${SYSTEM_CONF}/apache/imscp-vlogger.sql</copy_config>
<copy_config>${SYSTEM_CONF}/apache/logrotate.conf</copy_config>
<copy_config mode="0750">/usr/local/sbin/vlogger</copy_config>
<copy_config>${SYSTEM_CONF}/apache/vlogger.conf.tpl</copy_config>
<copy_config>${SYSTEM_CONF}/apache/vlogger.sql</copy_config>
</install>
14 changes: 7 additions & 7 deletions configs/debian/cron/imscp
@@ -1,23 +1,23 @@
# CRON(8) configuration file - auto-generated by i-MSCP
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:{ENGINE_ROOT_DIR}/bin

# Traffic accounting
0,30 * * * * root nice -n 10 ionice -c2 -n5 perl {ENGINE_ROOT_DIR}/bin/imscp-server-traffic >/dev/null 2>&1
0,30 * * * * root nice -n 10 ionice -c2 -n5 perl {ENGINE_ROOT_DIR}/bin/imscp-clients-traffic >/dev/null 2>&1
0,30 * * * * root nice -n 10 ionice -c2 -n5 imscp-server-traffic >/dev/null 2>&1
0,30 * * * * root nice -n 10 ionice -c2 -n5 imscp-clients-traffic >/dev/null 2>&1

# Quota accounting
@daily root nice -n 10 ionice -c2 -n5 perl {ENGINE_ROOT_DIR}/bin/imscp-disk-quota > /dev/null 2>&1
@daily root nice -n 10 ionice -c2 -n5 imscp-disk-quota > /dev/null 2>&1

# Automatic client accounts suspension
@daily root nice -n 10 ionice -c2 -n5 perl {ENGINE_ROOT_DIR}/bin/imscp-clients-suspend >/dev/null 2>&1
@daily root nice -n 10 ionice -c2 -n5 imscp-clients-suspend >/dev/null 2>&1

# Backup CP configuration files and database
{BACKUP_CP_MINUTE} {BACKUP_CP_HOUR} * * * root nice -n 10 ionice -c2 -n5 perl {ENGINE_ROOT_DIR}/bin/imscp-cp-backup >/dev/null 2>&1
{BACKUP_CP_MINUTE} {BACKUP_CP_HOUR} * * * root nice -n 10 ionice -c2 -n5 imscp-cp-backup >/dev/null 2>&1

# Backup client data (Web data, mail data, databases)
{BACKUP_CLIENTS_MINUTE} {BACKUP_CLIENTS_HOUR} * * * root nice -n 10 ionice -c2 -n5 perl {ENGINE_ROOT_DIR}/bin/imscp-clients-backup >/dev/null 2>&1
{BACKUP_CLIENTS_MINUTE} {BACKUP_CLIENTS_HOUR} * * * root nice -n 10 ionice -c2 -n5 imscp-clients-backup >/dev/null 2>&1

# Remove backup and log files which are older than 7 days
@weekly root find {CONF_DIR}/*/backup -maxdepth 0 -type f -mtime +7 -regextype sed -regex '.*/.*[0-9]\{10\}$' -exec rm -- {} +
Expand Down
2 changes: 1 addition & 1 deletion configs/debian/dpkg/90imscp
@@ -1,5 +1,5 @@
# dpkg(1) configuration file - auto-generated by i-MSCP
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
DPkg::Post-Invoke {
"if [ -f /var/www/imscp/engine/bin/imscp-dpkg-post-invoke -a ${IMSCP_SETUP:=0} -eq 0 ]; then /usr/bin/perl /var/www/imscp/engine/bin/imscp-dpkg-post-invoke -d; fi";
"if [ -x /var/www/imscp/engine/bin/imscp-dpkg-post-invoke -a ${IMSCP_SETUP:=0} -eq 0 ]; then /var/www/imscp/engine/bin/imscp-dpkg-post-invoke -d; fi";
};
2 changes: 1 addition & 1 deletion configs/debian/php/fpm/pool.conf.default
Expand Up @@ -12,5 +12,5 @@ listen.group = {HTTPD_GROUP}
listen.mode = 0660
pm = ondemand
pm.max_children = 1
pm.process_idle_timeout = 10s;
pm.process_idle_timeout = 10s
pm.max_requests = 1000
4 changes: 2 additions & 2 deletions configs/debian/systemd/imscp_mountall.service
Expand Up @@ -10,8 +10,8 @@ ConditionPathExists=/etc/imscp/mounts/mounts.conf
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/perl /var/www/imscp/engine/bin/imscp-mountall start
ExecStop=/usr/bin/perl /var/www/imscp/engine/bin/imscp-mountall stop
ExecStart=/var/www/imscp/engine/bin/imscp-mountall start
ExecStop=/var/www/imscp/engine/bin/imscp-mountall stop

[Install]
WantedBy=multi-user.target
4 changes: 2 additions & 2 deletions configs/debian/systemd/imscp_traffic.service
Expand Up @@ -7,8 +7,8 @@ After=local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/perl /var/www/imscp/engine/bin/imscp-net-traffic add
ExecStop=/usr/bin/perl /var/www/imscp/engine/bin/imscp-net-traffic remove
ExecStart=/var/www/imscp/engine/bin/imscp-net-traffic add
ExecStop=/var/www/imscp/engine/bin/imscp-net-traffic remove

[Install]
WantedBy=multi-user.target
4 changes: 2 additions & 2 deletions configs/debian/sysvinit/imscp_mountall
Expand Up @@ -35,13 +35,13 @@ check_for_upstart()

do_start()
{
perl ${BINDIR}/imscp-mountall start 2>/dev/null
${BINDIR}/imscp-mountall start 2>/dev/null
touch $LFILE
}

do_stop()
{
perl ${BINDIR}/imscp-mountall stop 2>/dev/null
${BINDIR}/imscp-mountall stop 2>/dev/null
rm -f $LFILE
}

Expand Down
4 changes: 2 additions & 2 deletions configs/debian/sysvinit/imscp_traffic
Expand Up @@ -36,13 +36,13 @@ check_for_upstart()

do_start()
{
perl ${BINDIR}/imscp-net-traffic add 2>/dev/null
${BINDIR}/imscp-net-traffic add 2>/dev/null
touch $LFILE
}

do_stop()
{
perl ${BINDIR}/imscp-net-traffic remove 2>/dev/null
${BINDIR}/imscp-net-traffic remove 2>/dev/null
rm -f $LFILE
}

Expand Down
4 changes: 2 additions & 2 deletions configs/debian/upstart/imscp_mountall.conf
Expand Up @@ -6,5 +6,5 @@ author "Laurent Declercq <l.declercq@nuxwin.com>"
start on filesystem
stop on runlevel [016]

pre-start exec /usr/bin/perl /var/www/imscp/engine/bin/imscp-mountall start
post-stop exec /usr/bin/perl /var/www/imscp/engine/bin/imscp-mountall stop
pre-start exec /var/www/imscp/engine/bin/imscp-mountall start
post-stop exec /var/www/imscp/engine/bin/imscp-mountall stop
4 changes: 2 additions & 2 deletions configs/debian/upstart/imscp_traffic.conf
Expand Up @@ -6,5 +6,5 @@ author "Laurent Declercq <l.declercq@nuxwin.com>"
start on runlevel [2345]
stop on runlevel [016]

pre-start exec /usr/bin/perl /var/www/imscp/engine/bin/imscp-net-traffic add
post-stop exec /usr/bin/perl /var/www/imscp/engine/bin/imscp-net-traffic remove
pre-start exec /var/www/imscp/engine/bin/imscp-net-traffic add
post-stop exec /var/www/imscp/engine/bin/imscp-net-traffic remove
2 changes: 1 addition & 1 deletion contrib/Listeners/Backup/10_backup_storage_outsourcing.pl
Expand Up @@ -23,7 +23,7 @@ package Listener::Backup::Storage::Outsourcing;
# 1. Upload that listener file into the /etc/imscp/listeners.d directory
# 2. Edit the /etc/imscp/listeners.d/10_backup_storage_outsourcing.pl file
# and set the $STORAGE_ROOT_PATH variable below according your needs
# 3. Trigger an i-MSCP reconfiguration: perl /var/www/imscp/engine/bin/imscp-reconfigure -danv
# 3. Trigger an i-MSCP reconfiguration: /var/www/imscp/engine/bin/imscp-reconfigure -danv

use strict;
use warnings;
Expand Down
2 changes: 1 addition & 1 deletion contrib/Listeners/Named/10_named_global_ns.pl
Expand Up @@ -23,7 +23,7 @@
# Don't forget also to activate IPv6 support if needed. All this can
# be done by reconfiguring the named service as follow:
#
# perl /var/www/imscp/engine/bin/imscp-reconfigure -dr named
# /var/www/imscp/engine/bin/imscp-reconfigure -dr named
#

package Listener::Named::Global::NS;
Expand Down
2 changes: 1 addition & 1 deletion contrib/Listeners/PHP/10_php_confoptions_override.pl
Expand Up @@ -20,7 +20,7 @@
##
## Be aware that only Fcgid and PHP-FPM Apache2 httpd server implementations are supported.
## Note: When you want operate on a per domain basis, don't forget to set the PHP configuration level to 'per_site'.
## You can do this by running: perl /var/www/imscp/engine/bin/imscp-reconfigure -dar php
## You can do this by running: /var/www/imscp/engine/bin/imscp-reconfigure -dar php
#

package Listener::Php::ConfOptions::Override;
Expand Down
2 changes: 1 addition & 1 deletion contrib/Listeners/PHP/10_phpfpm_settings_override.pl
Expand Up @@ -19,7 +19,7 @@
## Allows to override PHP-FPM settings in pool configuration files
##
## Note: When you want operate on a per domain basis, don't forget to set the PHP configuration level to 'per_site'.
## You can do this by running: perl /var/www/imscp/engine/bin/imscp-reconfigure -dar php
## You can do this by running: /var/www/imscp/engine/bin/imscp-reconfigure -dar php
#

package Listener::PhpFpm::Settings::Override;
Expand Down
6 changes: 3 additions & 3 deletions contrib/Listeners/README.md
Expand Up @@ -86,7 +86,7 @@ Listener file that allows to set identical NS entries in all zones
support if needed. All this can be done by reconfiguring the `named` service as follow:

```
perl /var/www/imscp/engine/setup/imscp-reconfigure -dr named
# /var/www/imscp/engine/setup/imscp-reconfigure -dr named
```

If you don't do so, zone transfers to your slave DNS servers won't be allowed.
Expand Down Expand Up @@ -136,7 +136,7 @@ Note: When you want operate on a per domain basis, don't forget to set the PHP c
can do this by running:

```
# perl /var/www/imscp/engine/setup/imscp-reconfigure -dar php
# /var/www/imscp/engine/setup/imscp-reconfigure -dar php
```

### 10_phpfpm_settings_override.pl
Expand All @@ -147,7 +147,7 @@ Note: When you want operate on a per domain basis, don't forget to set the PHP c
can do this by running:

```
# perl /var/www/imscp/engine/setup/imscp-reconfigure -dar php
# /var/www/imscp/engine/setup/imscp-reconfigure -dar php
```

## PhpMyAdmin listener files
Expand Down
7 changes: 1 addition & 6 deletions engine/PerlLib/Package/AntiRootkits.pm
Expand Up @@ -304,9 +304,6 @@ sub setEnginePermissions
my ( $self ) = @_;

try {
my $rs = $self->{'eventManager'}->trigger( 'beforeAntiRootkisSetGuiPermissions' );
return $rs if $rs;

my %selectedPackages;
@{selectedPackages}{ split ',', $::imscpConfig{'ANTI_ROOTKITS_PACKAGES'} } = ();

Expand All @@ -315,11 +312,9 @@ sub setEnginePermissions
$package = "Package::AntiRootkits::${package}::${package}";
eval "require $package" or die;
( my $subref = $package->can( 'setEnginePermissions' ) ) or next;
$rs = $subref->( $package->getInstance());
my $rs = $subref->( $package->getInstance());
return $rs if $rs;
}

$self->{'eventManager'}->trigger( 'afterAntiRootkisSetGuiPermissions' );
} catch {
error( $_ );
1;
Expand Down
2 changes: 2 additions & 0 deletions engine/PerlLib/Package/AntiRootkits/Chkrootkit/Chkrootkit.pm
Expand Up @@ -89,6 +89,8 @@ sub uninstall

sub setEnginePermissions
{
return 0 unless -f $::imscpConfig{'CHKROOTKIT_LOG'};

setRights( $::imscpConfig{'CHKROOTKIT_LOG'}, {
user => $::imscpConfig{'ROOT_USER'},
group => $::imscpConfig{'IMSCP_GROUP'},
Expand Down
4 changes: 2 additions & 2 deletions engine/PerlLib/Package/AntiRootkits/Rkhunter/Installer.pm
Expand Up @@ -135,7 +135,7 @@ sub _addCronTask
MONTH => '',
DWEEK => '',
USER => $::imscpConfig{'ROOT_USER'},
COMMAND => "nice -n 10 ionice -c2 -n5 perl $::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/AntiRootkits/Rkhunter/bin/imscp-rkhunter > /dev/null 2>&1"
COMMAND => "nice -n 10 ionice -c2 -n5 $::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/AntiRootkits/Rkhunter/bin/imscp-rkhunter > /dev/null 2>&1"
} );
}

Expand All @@ -159,7 +159,7 @@ sub _scheduleCheck
return $rs if $rs;

$rs = execute(
"echo 'perl $main::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/AntiRootkits/Rkhunter/bin/imscp-rkhunter > /dev/null 2>&1' | at now + 10 minutes",
"echo '$main::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/AntiRootkits/Rkhunter/bin/imscp-rkhunter > /dev/null 2>&1' | at now + 10 minutes",
\my $stdout,
\my $stderr
);
Expand Down
2 changes: 1 addition & 1 deletion engine/PerlLib/Package/AntiRootkits/Rkhunter/Rkhunter.pm
Expand Up @@ -89,7 +89,7 @@ sub setEnginePermissions
my $rs = setRights( "$::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/AntiRootkits/Rkhunter/bin/imscp-rkhunter", {
user => $::imscpConfig{'ROOT_USER'},
group => $::imscpConfig{'ROOT_USER'},
mode => '0700'
mode => '0750'
} );

return $rs if $rs || !-f $::imscpConfig{'RKHUNTER_LOG'};
Expand Down
Expand Up @@ -43,7 +43,7 @@ use Try::Tiny;

newDebug( 'imscp-rkhunter.log' );

iMSCP::Getopt->parseNoDefault( sprintf( 'Usage: perl %s [OPTION]...', basename( $0 )) . qq{
iMSCP::Getopt->parseNoDefault( sprintf( 'Usage: %s [OPTION]...', basename( $0 )) . qq{
Process rkhunter(8) checks.
Expand Down
6 changes: 2 additions & 4 deletions engine/PerlLib/Package/FrontEnd.pm
Expand Up @@ -191,9 +191,7 @@ sub setEnginePermissions
{
my ( $self ) = @_;

my $rs = $self->{'eventManager'}->trigger( 'beforeFrontEndSetEnginePermissions' );

$rs ||= setRights( $self->{'config'}->{'HTTPD_CONF_DIR'}, {
my $rs = setRights( $self->{'config'}->{'HTTPD_CONF_DIR'}, {
user => $::imscpConfig{'ROOT_USER'},
group => $::imscpConfig{'ROOT_GROUP'},
dirmode => '0755',
Expand Down Expand Up @@ -260,7 +258,7 @@ sub setEnginePermissions
}
}

$self->{'eventManager'}->trigger( 'afterFrontEndSetEnginePermissions' );
0;
}

=item setGuiPermissions( )
Expand Down
40 changes: 21 additions & 19 deletions engine/PerlLib/Package/Webstats/Awstats/Awstats.pm
Expand Up @@ -109,15 +109,16 @@ sub setEnginePermissions
{
my ( $self ) = @_;

my $rs = setRights( "$::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/Webstats/Awstats/Scripts/awstats_updateall.pl", {
user => $::imscpConfig{'ROOT_USER'},
group => $::imscpConfig{'ROOT_USER'},
mode => '0700'
my $rs = setRights( "$::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/Webstats/Awstats/bin", {
user => $::imscpConfig{'ROOT_USER'},
group => $::imscpConfig{'ROOT_USER'},
mode => '0750',
recursive => TRUE
} );
$rs ||= setRights( $::imscpConfig{'AWSTATS_CACHE_DIR'}, {
user => $::imscpConfig{'ROOT_USER'},
group => $self->{'httpd'}->getRunningGroup(),
dirmode => '02750',
dirmode => '2750',
filemode => '0640',
recursive => iMSCP::Getopt->fixPermissions
}
Expand Down Expand Up @@ -361,8 +362,8 @@ sub _addAwstatsConfig
my ( $self, $data ) = @_;

try {
my $awstatsPackageRootDir = "$::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/Webstats/Awstats";
my $fileC = iMSCP::File->new( filename => "$awstatsPackageRootDir/Config/awstats.imscp_tpl.conf" )->getAsRef();
my $packageDir = "$::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/Webstats/Awstats";
my $fileC = iMSCP::File->new( filename => "$packageDir/config/awstats.imscp_tpl.conf" )->getAsRef();
return 1 unless defined $fileC;

my ( $adminName ) = iMSCP::Database->factory()->getConnector()->run( fixup => sub {
Expand All @@ -374,18 +375,19 @@ sub _addAwstatsConfig
return 1;
}

my $tags = {
ALIAS => $data->{'ALIAS'},
AUTH_USER => $adminName,
AWSTATS_CACHE_DIR => $::imscpConfig{'AWSTATS_CACHE_DIR'},
AWSTATS_ENGINE_DIR => $::imscpConfig{'AWSTATS_ENGINE_DIR'},
AWSTATS_WEB_DIR => $::imscpConfig{'AWSTATS_WEB_DIR'},
CMD_LOGRESOLVEMERGE => "perl $awstatsPackageRootDir/Scripts/logresolvemerge.pl",
DOMAIN_NAME => $data->{'DOMAIN_NAME'},
LOG_DIR => "$self->{'httpd'}->{'config'}->{'HTTPD_LOG_DIR'}/$data->{'DOMAIN_NAME'}"
};

${ $fileC } = process( $tags, ${ $fileC } );
${ $fileC } = process(
{
ALIAS => $data->{'ALIAS'},
AUTH_USER => $adminName,
AWSTATS_CACHE_DIR => $::imscpConfig{'AWSTATS_CACHE_DIR'},
AWSTATS_ENGINE_DIR => $::imscpConfig{'AWSTATS_ENGINE_DIR'},
AWSTATS_WEB_DIR => $::imscpConfig{'AWSTATS_WEB_DIR'},
CMD_LOGRESOLVEMERGE => "$packageDir/bin/logresolvemerge.pl",
DOMAIN_NAME => $data->{'DOMAIN_NAME'},
LOG_DIR => "$self->{'httpd'}->{'config'}->{'HTTPD_LOG_DIR'}/$data->{'DOMAIN_NAME'}"
},
${ $fileC }
);

my $file = iMSCP::File->new( filename => "$::imscpConfig{'AWSTATS_CONFIG_DIR'}/awstats.$data->{'DOMAIN_NAME'}.conf" );
my $rs = $file->save();
Expand Down
5 changes: 2 additions & 3 deletions engine/PerlLib/Package/Webstats/Awstats/Installer.pm
Expand Up @@ -152,7 +152,7 @@ sub _setupApache2
AWSTATS_ENGINE_DIR => $::imscpConfig{'AWSTATS_ENGINE_DIR'},
AWSTATS_WEB_DIR => $::imscpConfig{'AWSTATS_WEB_DIR'}
} );
$rs = $self->{'httpd'}->buildConfFile( "$::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/Webstats/Awstats/Config/01_awstats.conf" );
$rs = $self->{'httpd'}->buildConfFile( "$::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/Webstats/Awstats/config/01_awstats.conf" );
$rs ||= $self->{'httpd'}->enableSites( '01_awstats.conf' );
}

Expand All @@ -166,7 +166,6 @@ sub _setupApache2

sub _disableDefaultConfig
{

if ( -f "$::imscpConfig{'AWSTATS_CONFIG_DIR'}/awstats.conf" ) {
my $rs = iMSCP::File->new( filename => "$::imscpConfig{'AWSTATS_CONFIG_DIR'}/awstats.conf" )->moveFile(
"$::imscpConfig{'AWSTATS_CONFIG_DIR'}/awstats.conf.disabled"
Expand Down Expand Up @@ -202,7 +201,7 @@ sub _addAwstatsCronTask
DWEEK => '*',
USER => $::imscpConfig{'ROOT_USER'},
COMMAND => 'nice -n 10 ionice -c2 -n5 ' .
"perl $::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/Webstats/Awstats/Scripts/awstats_updateall.pl now " .
"$::imscpConfig{'ENGINE_ROOT_DIR'}/PerlLib/Package/Webstats/Awstats/bin/awstats_updateall.pl now " .
"-awstatsprog=$::imscpConfig{'AWSTATS_ENGINE_DIR'}/awstats.pl > /dev/null 2>&1"
} );
}
Expand Down

0 comments on commit 5a11af1

Please sign in to comment.