install/install.php | ●●●●● patch | view | raw | blame | history | |
install/lib/installer_base.lib.php | ●●●●● patch | view | raw | blame | history | |
install/tpl/mydns.conf.master | ●●●●● patch | view | raw | blame | history | |
install/update.php | ●●●●● patch | view | raw | blame | history |
install/install.php
@@ -90,9 +90,13 @@ swriteln('Configuring Getmail'); $inst->configure_getmail(); // Configure Getmail // Configure Pureftpd swriteln('Configuring Pureftpd'); $inst->configure_pureftpd(); // Configure MyDNS swriteln('Configuring MyDNS'); $inst->configure_mydns(); // Configure ISPConfig swriteln('Installing ISPConfig'); @@ -128,6 +132,7 @@ system("/etc/init.d/courier-pop-ssl restart"); system("/etc/init.d/apache2 restart"); system("/etc/init.d/pure-ftpd-mysql restart"); system("/etc/init.d/mydns restart"); echo "Installation finished.\n"; install/lib/installer_base.lib.php
@@ -473,6 +473,25 @@ } function configure_mydns() { global $conf; // configure pam for SMTP authentication agains the ispconfig database $configfile = 'mydns.conf'; if(is_file($conf["dist_mydns_config_dir"].'/'.$configfile)) copy($conf["dist_mydns_config_dir"].'/'.$configfile,$conf["dist_mydns_config_dir"].'/'.$configfile.'~'); if(is_file($conf["dist_mydns_config_dir"].'/'.$configfile.'~')) exec('chmod 400 '.$conf["dist_mydns_config_dir"].'/'.$configfile.'~'); $content = rf("tpl/".$configfile.".master"); $content = str_replace('{mysql_server_ispconfig_user}',$conf["mysql_server_ispconfig_user"],$content); $content = str_replace('{mysql_server_ispconfig_password}',$conf["mysql_server_ispconfig_password"],$content); $content = str_replace('{mysql_server_database}',$conf["mysql_server_database"],$content); $content = str_replace('{mysql_server_ip}',$conf["mysql_server_ip"],$content); $content = str_replace('{server_id}',$conf["server_id"],$content); wf($conf["dist_mydns_config_dir"].'/'.$configfile,$content); exec('chmod 600 '.$conf["dist_mydns_config_dir"].'/'.$configfile); exec('chown root:root '.$conf["dist_mydns_config_dir"].'/'.$configfile); } function install_ispconfig() { global $conf; install/tpl/mydns.conf.master
New file @@ -0,0 +1,53 @@ ## AUTOMATICALLY GENERATED BY DEBCONF. DO NOT MODIFY DATABASE ## INFORMATION (database, db-*)... ## PLEASE RUN 'dpkg-reconfigure mydns-mysql' INSTEAD. ## CHANGES TO THE FOLLOWING DIRECTIVES ARE NOT PRESERVED, BUT REPLACED, ## ON UPGRADE: ## user, group, pidfile, db-*, database ## ## /etc/mydns.conf ## Thu Aug 2 16:36:26 2007 ## For more information, see mydns.conf(5). ## # DATABASE INFORMATION db-host = {mysql_server_ip} # SQL server hostname db-user = {mysql_server_ispconfig_user} # SQL server username db-password = {mysql_server_ispconfig_password} # SQL server password database = {mysql_server_database} # MyDNS database name # GENERAL OPTIONS user = nobody # Run with the permissions of this user group = nogroup # Run with the permissions of this group listen = * # Listen on these addresses ('*' for all) no-listen = # Do not listen on these addresses # CACHE OPTIONS zone-cache-size = 2048 # Maximum number of elements stored in the zone cache zone-cache-expire = 60 # Number of seconds after which cached zones expires reply-cache-size = 2048 # Maximum number of elements stored in the reply cache reply-cache-expire = 30 # Number of seconds after which cached replies expire # ESOTERICA log = LOG_DAEMON # Facility to use for program output (LOG_*/stdout/stderr) pidfile = /var/run/mydns.pid # Path to PID file timeout = 120 # Number of seconds after which queries time out multicpu = 1 # Number of CPUs installed on your system recursive = # Location of recursive resolver allow-axfr = yes # Should AXFR be enabled? allow-tcp = no # Should TCP be enabled? allow-update = no # Should DNS UPDATE be enabled? ignore-minimum = no # Ignore minimum TTL for zone? soa-table = dns_soa # Name of table containing SOA records rr-table = dns_rr # Name of table containing RR data soa-where = server_id = {server_id} # Extra WHERE clause for SOA queries rr-where = server_id = {server_id} # Extra WHERE clause for RR queries install/update.php
@@ -128,9 +128,13 @@ swriteln('Configuring Getmail'); $inst->configure_getmail(); // Configure Getmail // Configure Pureftpd swriteln('Configuring Pureftpd'); $inst->configure_pureftpd(); // Configure MyDNS swriteln('Configuring MyDNS'); $inst->configure_mydns(); // Configure ISPConfig swriteln('Installing ISPConfig'); @@ -158,6 +162,7 @@ system("/etc/init.d/courier-pop-ssl restart"); system("/etc/init.d/apache2 restart"); system("/etc/init.d/pure-ftpd-mysql restart"); system("/etc/init.d/mydns restart"); echo "Update finished.\n";