| | |
| | | |
| | | //** We have to change the permissions of the courier authdaemon directory to make it accessible for maildrop. |
| | | $command = 'chmod 755 /var/run/courier/authdaemon/'; |
| | | caselog($command.' &> /dev/null', __FILE__, __LINE__, 'EXECUTED: '.$command, 'Failed to execute the command '.$command); |
| | | if(is_file('/var/run/courier/authdaemon/')) caselog($command.' &> /dev/null', __FILE__, __LINE__, 'EXECUTED: '.$command, 'Failed to execute the command '.$command); |
| | | |
| | | //* Changing maildrop lines in posfix master.cf |
| | | if(is_file($config_dir.'/master.cf')) { |
| | |
| | | //exec('mkdir -p '.$config_dir.'/conf/ChrootEveryone'); |
| | | exec('echo "yes" > '.$config_dir.'/conf/ChrootEveryone'); |
| | | exec('echo "yes" > '.$config_dir.'/conf/BrokenClientsCompatibility'); |
| | | exec('echo "yes" > '.$config_dir.'/conf/DisplayDotFiles'); |
| | | |
| | | if(is_file('/etc/default/pure-ftpd-common')) { |
| | | replaceLine('/etc/default/pure-ftpd-common','STANDALONE_OR_INETD=inetd','STANDALONE_OR_INETD=standalone',1,0); |
| | |
| | | |
| | | //* Add Log-Rotation |
| | | if (is_dir('/etc/logrotate.d')) { |
| | | unlink('/etc/logrotate.d/logispc3'); |
| | | @unlink('/etc/logrotate.d/logispc3'); // ignore, if the file is not there |
| | | $fh = fopen('/etc/logrotate.d/logispc3', 'w'); |
| | | fwrite($fh, |
| | | "/var/log/ispconfig/ispconfig.log { \n" . |