Fixed problem with ispconfig auth.log permissions.
| | |
| | | exec('chown -R ispconfig:ispconfig '.escapeshellarg($install_dir.'/interface/invoices')); |
| | | } |
| | | |
| | | //* Create the ispconfig auth log file and set uid/gid |
| | | if(!is_file($conf['ispconfig_log_dir'].'/auth.log')) { |
| | | touch($conf['ispconfig_log_dir'].'/auth.log'); |
| | | } |
| | | exec('chown ispconfig:ispconfig '. $conf['ispconfig_log_dir'].'/auth.log'); |
| | | exec('chmod 660 '. $conf['ispconfig_log_dir'].'/auth.log'); |
| | | |
| | | //* Remove Domain module as its functions are available in the client module now |
| | | if(@is_dir('/usr/local/ispconfig/interface/web/domain')) exec('rm -rf /usr/local/ispconfig/interface/web/domain'); |
| | | |
| | |
| | | touch($conf['ispconfig_log_dir'].'/ispconfig.log'); |
| | | } |
| | | |
| | | //* Create the ispconfig auth log file and set uid/gid |
| | | if(!is_file($conf['ispconfig_log_dir'].'/auth.log')) { |
| | | touch($conf['ispconfig_log_dir'].'/auth.log'); |
| | | } |
| | | exec('chown ispconfig:ispconfig '. $conf['ispconfig_log_dir'].'/auth.log'); |
| | | exec('chmod 660 '. $conf['ispconfig_log_dir'].'/auth.log'); |
| | | |
| | | rename($install_dir.'/server/scripts/run-getmail.sh', '/usr/local/bin/run-getmail.sh'); |
| | | |
| | | if (is_user('getmail')) { |
| | |
| | | exec('chown -R ispconfig:ispconfig '.escapeshellarg($install_dir.'/interface/invoices')); |
| | | } |
| | | |
| | | //* Create the ispconfig auth log file and set uid/gid |
| | | if(!is_file($conf['ispconfig_log_dir'].'/auth.log')) { |
| | | touch($conf['ispconfig_log_dir'].'/auth.log'); |
| | | } |
| | | exec('chown ispconfig:ispconfig '. $conf['ispconfig_log_dir'].'/auth.log'); |
| | | exec('chmod 660 '. $conf['ispconfig_log_dir'].'/auth.log'); |
| | | |
| | | //* Remove Domain module as its functions are available in the client module now |
| | | if(@is_dir('/usr/local/ispconfig/interface/web/domain')) exec('rm -rf /usr/local/ispconfig/interface/web/domain'); |
| | | |
| | |
| | | if(is_file($ispconfig_vhost_file)) { |
| | | $tmp = file_get_contents($ispconfig_vhost_file); |
| | | preg_match($regex,$tmp,$matches); |
| | | $port_number = intval($matches[1]); |
| | | $port_number = @intval($matches[1]); |
| | | if($port_number > 0) { |
| | | return $port_number; |
| | | } else { |
| | |
| | | //* Create the ispconfig auth log file and set uid/gid |
| | | if(!is_file($conf['ispconfig_log_dir'].'/auth.log')) { |
| | | touch($conf['ispconfig_log_dir'].'/auth.log'); |
| | | } |
| | | exec('chown ispconfig:ispconfig '. $conf['ispconfig_log_dir'].'/auth.log'); |
| | | exec('chmod 660 '. $conf['ispconfig_log_dir'].'/auth.log'); |
| | | } |
| | | |
| | | if(is_user('getmail')) { |
| | | rename($install_dir.'/server/scripts/run-getmail.sh','/usr/local/bin/run-getmail.sh'); |