| | |
| | | } |
| | | |
| | | //* Chmod and chown the .mailfilter file |
| | | $command = 'chown -R '.$cf['vmail_username'].':'.$cf['vmail_groupname'].' '.$cf['vmail_mailbox_base'].'/.mailfilter'; |
| | | $command = 'chown '.$cf['vmail_username'].':'.$cf['vmail_groupname'].' '.$cf['vmail_mailbox_base'].'/.mailfilter'; |
| | | caselog($command." &> /dev/null", __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); |
| | | |
| | | $command = 'chmod -R 600 '.$cf['vmail_mailbox_base'].'/.mailfilter'; |
| | | $command = 'chmod 600 '.$cf['vmail_mailbox_base'].'/.mailfilter'; |
| | | caselog($command." &> /dev/null", __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command"); |
| | | |
| | | } |
| | |
| | | if(!is_dir($conf['ispconfig_log_dir'])) mkdir($conf['ispconfig_log_dir'], 0755); |
| | | touch($conf['ispconfig_log_dir'].'/ispconfig.log'); |
| | | } |
| | | |
| | | rename($install_dir.'/server/scripts/run-getmail.sh','/usr/local/bin/run-getmail.sh'); |
| | | if(is_user('getmail')) chown('/usr/local/bin/run-getmail.sh', 'getmail'); |
| | | chmod('/usr/local/bin/run-getmail.sh', 0744); |
| | | |
| | | if(is_user('getmail')) { |
| | | rename($install_dir.'/server/scripts/run-getmail.sh','/usr/local/bin/run-getmail.sh'); |
| | | if(is_user('getmail')) chown('/usr/local/bin/run-getmail.sh', 'getmail'); |
| | | chmod('/usr/local/bin/run-getmail.sh', 0744); |
| | | } |
| | | |
| | | //* Add Log-Rotation |
| | | if (is_dir('/etc/logrotate.d')) { |