| | |
| | | // Create the config file for ISPConfig server |
| | | $this->write_config_file("$install_dir/server/lib/$configfile", $content); |
| | | |
| | | //* Create the config file for remote-actions (but only, if it does not exist, because |
| | | // the value is a autoinc-value and so changed by the remoteaction_core_module |
| | | if (!file_exists($install_dir.'/server/lib/remote_action.inc.php')) { |
| | | $content = '<?php' . "\n" . '$maxid_remote_action = 0;' . "\n" . '?>'; |
| | | wf($install_dir.'/server/lib/remote_action.inc.php', $content); |
| | | } |
| | | |
| | | // Enable the server modules and plugins. |
| | | // TODO: Implement a selector which modules and plugins shall be enabled. |
| | | $dir = $install_dir.'/server/mods-available/'; |
| | |
| | | $content = str_replace('{vhost_port_listen}', '', $content); |
| | | } |
| | | |
| | | if(is_file('/usr/local/ispconfig/interface/ssl/ispserver.crt') && is_file('/usr/local/ispconfig/interface/ssl/ispserver.key')) { |
| | | $content = str_replace('{ssl_comment}', '', $content); |
| | | } else { |
| | | $content = str_replace('{ssl_comment}', '#', $content); |
| | | } |
| | | |
| | | $vhost_path = $conf['apache']['vhost_conf_dir'].'/ispconfig.vhost'; |
| | | $this->write_config_file($vhost_path, $content); |
| | | |
| | |
| | | } |
| | | |
| | | // Create the ispconfig log directory |
| | | if (!is_dir('/var/log/ispconfig')) { |
| | | mkdir('/var/log/ispconfig'); |
| | | if (!is_dir($conf['ispconfig_log_dir'])) { |
| | | mkdir($conf['ispconfig_log_dir']); |
| | | } |
| | | if (!is_file('/var/log/ispconfig/ispconfig.log')) { |
| | | exec('touch /var/log/ispconfig/ispconfig.log'); |
| | | if (!is_file($conf['ispconfig_log_dir'].'/ispconfig.log')) { |
| | | exec('touch '.$conf['ispconfig_log_dir'].'/ispconfig.log'); |
| | | } |
| | | |
| | | exec('mv /usr/local/ispconfig/server/scripts/run-getmail.sh /usr/local/bin/run-getmail.sh'); |
| | |
| | | } |
| | | } |
| | | |
| | | ?> |
| | | ?> |