Skip to content

Commit a48f1e7

Browse files
committed
add detection code for el9 dist tag
1 parent 39bf4b2 commit a48f1e7

File tree

4 files changed

+385
-105
lines changed

4 files changed

+385
-105
lines changed
Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
<?php
2+
3+
/*
4+
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without modification,
8+
are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice,
11+
this list of conditions and the following disclaimer.
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
* Neither the name of ISPConfig nor the names of its contributors
16+
may be used to endorse or promote products derived from this software without
17+
specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22+
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
26+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
*/
30+
31+
//*** Fedora 9 default settings
32+
33+
//* Main
34+
$conf['language'] = 'en';
35+
$conf['distname'] = 'centos90';
36+
$conf['hostname'] = 'server1.domain.tld'; // Full hostname
37+
$conf['ispconfig_install_dir'] = '/usr/local/ispconfig';
38+
$conf['ispconfig_config_dir'] = '/usr/local/ispconfig';
39+
$conf['ispconfig_log_priority'] = 2; // 0 = Debug, 1 = Warning, 2 = Error
40+
$conf['ispconfig_log_dir'] = '/var/log/ispconfig';
41+
$conf['server_id'] = 1;
42+
$conf['init_scripts'] = '/etc/init.d';
43+
$conf['runlevel'] = '/etc';
44+
$conf['shells'] = '/etc/shells';
45+
$conf['pam'] = '/etc/pam.d';
46+
47+
//* Services provided by this server, this selection will be overridden by the expert mode
48+
$conf['services']['mail'] = true;
49+
$conf['services']['web'] = true;
50+
$conf['services']['dns'] = true;
51+
$conf['services']['file'] = true;
52+
$conf['services']['db'] = true;
53+
$conf['services']['vserver'] = true;
54+
55+
//* MySQL
56+
$conf['mysql']['installed'] = false; // will be detected automatically during installation
57+
$conf['mysql']['init_script'] = 'mariadb';
58+
$conf['mysql']['host'] = 'localhost';
59+
$conf['mysql']['ip'] = '127.0.0.1';
60+
$conf['mysql']['port'] = '3306';
61+
$conf['mysql']['database'] = 'dbispconfig';
62+
$conf['mysql']['admin_user'] = 'root';
63+
$conf['mysql']['admin_password'] = '';
64+
$conf['mysql']['charset'] = 'utf8';
65+
$conf['mysql']['ispconfig_user'] = 'ispconfig';
66+
$conf['mysql']['ispconfig_password'] = md5(random_bytes(20));
67+
$conf['mysql']['master_slave_setup'] = 'n';
68+
$conf['mysql']['master_host'] = '';
69+
$conf['mysql']['master_port'] = '3306';
70+
$conf['mysql']['master_database'] = 'dbispconfig';
71+
$conf['mysql']['master_admin_user'] = 'root';
72+
$conf['mysql']['master_admin_password'] = '';
73+
$conf['mysql']['master_ispconfig_user'] = '';
74+
$conf['mysql']['master_ispconfig_password'] = md5(random_bytes(20));
75+
76+
//* Apache
77+
$conf['apache']['installed'] = false; // will be detected automatically during installation
78+
$conf['apache']['user'] = 'apache';
79+
$conf['apache']['group'] = 'apache';
80+
$conf['apache']['init_script'] = 'httpd';
81+
$conf['apache']['version'] = '2.2';
82+
$conf['apache']['vhost_conf_dir'] = '/etc/httpd/conf/sites-available';
83+
$conf['apache']['vhost_conf_enabled_dir'] = '/etc/httpd/conf/sites-enabled';
84+
$conf['apache']['vhost_port'] = '8080';
85+
$conf['apache']['php_ini_path_apache'] = '/etc/php.ini';
86+
$conf['apache']['php_ini_path_cgi'] = '/etc/php.ini';
87+
88+
//* Website base settings
89+
$conf['web']['website_basedir'] = '/var/www';
90+
$conf['web']['website_path'] = '/var/www/clients/client[client_id]/web[website_id]';
91+
$conf['web']['website_symlinks'] = '/var/www/[website_domain]/:/var/www/clients/client[client_id]/[website_domain]/';
92+
93+
//* Apps base settings
94+
$conf['web']['apps_vhost_ip'] = '_default_';
95+
$conf['web']['apps_vhost_port'] = '8081';
96+
$conf['web']['apps_vhost_servername'] = '';
97+
$conf['web']['apps_vhost_user'] = 'ispapps';
98+
$conf['web']['apps_vhost_group'] = 'ispapps';
99+
100+
//* AWStats settings
101+
$conf['awstats']['pl'] = '/usr/share/awstats/wwwroot/cgi-bin/awstats.pl';
102+
103+
//* Fastcgi
104+
$conf['fastcgi']['fastcgi_phpini_path'] = '/etc/';
105+
$conf['fastcgi']['fastcgi_starter_path'] = '/var/www/php-fcgi-scripts/[system_user]/';
106+
$conf['fastcgi']['fastcgi_bin'] = '/usr/bin/php-cgi';
107+
108+
//* Postfix
109+
$conf['postfix']['installed'] = false; // will be detected automatically during installation
110+
$conf['postfix']['config_dir'] = '/etc/postfix';
111+
$conf['postfix']['init_script'] = 'postfix';
112+
$conf['postfix']['user'] = 'postfix';
113+
$conf['postfix']['group'] = 'postfix';
114+
$conf['postfix']['vmail_userid'] = '5000';
115+
$conf['postfix']['vmail_username'] = 'vmail';
116+
$conf['postfix']['vmail_groupid'] = '5000';
117+
$conf['postfix']['vmail_groupname'] = 'vmail';
118+
$conf['postfix']['vmail_mailbox_base'] = '/var/vmail';
119+
120+
//* Mailman
121+
$conf['mailman']['installed'] = false; // will be detected automatically during installation
122+
$conf['mailman']['config_dir'] = '/etc/mailman';
123+
$conf['mailman']['init_script'] = 'mailman';
124+
125+
//* Getmail
126+
$conf['getmail']['installed'] = false; // will be detected automatically during installation
127+
$conf['getmail']['config_dir'] = '/etc/getmail';
128+
$conf['getmail']['program'] = '/usr/bin/getmail';
129+
130+
//* Courier
131+
$conf['courier']['installed'] = false; // will be detected automatically during installation
132+
$conf['courier']['config_dir'] = '/etc/authlib';
133+
$conf['courier']['courier-authdaemon'] = 'courier-authlib';
134+
$conf['courier']['courier-imap'] = 'courier-imap';
135+
$conf['courier']['courier-imap-ssl'] = '';
136+
$conf['courier']['courier-pop'] = '';
137+
$conf['courier']['courier-pop-ssl'] = '';
138+
139+
//* Dovecot
140+
$conf['dovecot']['installed'] = false; // will be detected automatically during installation
141+
$conf['dovecot']['config_dir'] = '/etc/dovecot';
142+
$conf['dovecot']['init_script'] = 'dovecot';
143+
144+
//* SASL
145+
$conf['saslauthd']['installed'] = false; // will be detected automatically during installation
146+
$conf['saslauthd']['config'] = '/etc/sysconfig/saslauthd';
147+
$conf['saslauthd']['init_script'] = 'saslauthd';
148+
149+
//* Amavisd
150+
$conf['amavis']['installed'] = false; // will be detected automatically during installation
151+
$conf['amavis']['config_dir'] = '/etc/amavisd';
152+
$conf['amavis']['init_script'] = 'amavisd';
153+
154+
//* Rspamd
155+
$conf['rspamd']['installed'] = false; // will be detected automatically during installation
156+
$conf['rspamd']['config_dir'] = '/etc/rspamd';
157+
$conf['rspamd']['init_script'] = 'rspamd';
158+
159+
//* ClamAV
160+
$conf['clamav']['installed'] = false; // will be detected automatically during installation
161+
$conf['clamav']['init_script'] = 'clamd@amavisd';
162+
163+
//* Pureftpd
164+
$conf['pureftpd']['installed'] = false; // will be detected automatically during installation
165+
$conf['pureftpd']['config_dir'] = '/etc/pure-ftpd';
166+
$conf['pureftpd']['init_script'] = 'pure-ftpd';
167+
168+
//* MyDNS
169+
$conf['mydns']['installed'] = false; // will be detected automatically during installation
170+
$conf['mydns']['config_dir'] = '/etc';
171+
$conf['mydns']['init_script'] = 'mydns';
172+
173+
//* PowerDNS
174+
$conf['powerdns']['installed'] = false; // will be detected automatically during installation
175+
$conf['powerdns']['database'] = 'powerdns';
176+
$conf["powerdns"]["config_dir"] = '/etc/powerdns/pdns.d';
177+
$conf['powerdns']['init_script'] = 'pdns';
178+
179+
//* BIND DNS Server
180+
$conf['bind']['installed'] = false; // will be detected automatically during installation
181+
$conf['bind']['bind_user'] = 'named';
182+
$conf['bind']['bind_group'] = 'named';
183+
$conf['bind']['bind_zonefiles_dir'] = '/var/named';
184+
$conf['bind']['named_conf_path'] = '/etc/named.conf';
185+
$conf['bind']['named_conf_local_path'] = '/etc/named.conf.local';
186+
$conf['bind']['init_script'] = 'named';
187+
188+
//* Jailkit
189+
$conf['jailkit']['installed'] = false; // will be detected automatically during installation
190+
$conf['jailkit']['config_dir'] = '/etc/jailkit';
191+
$conf['jailkit']['jk_init'] = 'jk_init.ini';
192+
$conf['jailkit']['jk_chrootsh'] = 'jk_chrootsh.ini';
193+
$conf['jailkit']['jailkit_chroot_app_programs'] = '/usr/bin/groups /usr/bin/id /usr/bin/dircolors /bin/basename /usr/bin/dirname /usr/bin/nano';
194+
$conf['jailkit']['jailkit_chroot_cron_programs'] = '/usr/bin/php /usr/bin/perl /usr/share/perl /usr/share/php';
195+
196+
//* Squid
197+
$conf['squid']['installed'] = false; // will be detected automatically during installation
198+
$conf['squid']['config_dir'] = '/etc/squid';
199+
$conf['squid']['init_script'] = 'squid';
200+
201+
//* Nginx
202+
$conf['nginx']['installed'] = false; // will be detected automatically during installation
203+
$conf['nginx']['user'] = 'nginx';
204+
$conf['nginx']['group'] = 'nginx';
205+
$conf['nginx']['config_dir'] = '/etc/nginx';
206+
$conf['nginx']['vhost_conf_dir'] = '/etc/nginx/sites-available';
207+
$conf['nginx']['vhost_conf_enabled_dir'] = '/etc/nginx/sites-enabled';
208+
$conf['nginx']['init_script'] = 'nginx';
209+
$conf['nginx']['vhost_port'] = '8080';
210+
$conf['nginx']['cgi_socket'] = '/var/run/fcgiwrap.socket';
211+
$conf['nginx']['php_fpm_init_script'] = 'php-fpm';
212+
$conf['nginx']['php_fpm_ini_path'] = '/etc/php.ini';
213+
$conf['nginx']['php_fpm_pool_dir'] = '/etc/php-fpm.d';
214+
$conf['nginx']['php_fpm_start_port'] = 9010;
215+
$conf['nginx']['php_fpm_socket_dir'] = '/var/lib/php5-fpm';
216+
217+
//* vlogger
218+
$conf['vlogger']['config_dir'] = '/etc';
219+
220+
//* cron
221+
$conf['cron']['init_script'] = 'crond';
222+
$conf['cron']['crontab_dir'] = '/etc/cron.d';
223+
$conf['cron']['wget'] = '/usr/bin/wget';
224+
225+
//* OpenVZ
226+
$conf['openvz']['installed'] = false;
227+
228+
// AppArmor
229+
$conf['apparmor']['installed'] = false;
230+
231+
?>

install/dist/lib/centos90.lib.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
/*
4+
Copyright (c) 2014, Till Brehm, ISPConfig UG
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without modification,
8+
are permitted provided that the following conditions are met:
9+
10+
* Redistributions of source code must retain the above copyright notice,
11+
this list of conditions and the following disclaimer.
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
* Neither the name of ISPConfig nor the names of its contributors
16+
may be used to endorse or promote products derived from this software without
17+
specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22+
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
23+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
24+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
26+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29+
*/
30+
31+
require_once realpath(dirname(__FILE__)) . '/centos_base.lib.php';
32+
33+
class installer extends installer_centos {
34+
35+
protected $clamav_socket = '/var/run/clamd.amavisd/clamd.sock';
36+
37+
// everything else is inherited from installer_centos class
38+
}
39+
40+
?>

0 commit comments

Comments
 (0)