Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
99d85e6f
Commit
99d85e6f
authored
Aug 11, 2007
by
tbrehm
Browse files
Added mydns configuration to the installer.
parent
4f4b91f5
Changes
4
Show whitespace changes
Inline
Side-by-side
install/install.php
View file @
99d85e6f
...
...
@@ -90,10 +90,14 @@ $inst->configure_amavis();
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'
);
$inst
->
install_ispconfig
();
...
...
@@ -128,6 +132,7 @@ system("/etc/init.d/courier-pop restart");
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
View file @
99d85e6f
...
...
@@ -473,6 +473,25 @@ maildrop unix - n n - - pipe
}
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
0 → 100644
View file @
99d85e6f
## 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
\ No newline at end of file
install/update.php
View file @
99d85e6f
...
...
@@ -128,10 +128,14 @@ $inst->configure_amavis();
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'
);
$inst
->
install_ispconfig
();
...
...
@@ -158,6 +162,7 @@ system("/etc/init.d/courier-pop restart");
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
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment