File froxlor.sql.patch of Package froxlor.openSUSE_13.1_Update
--- install/froxlor.sql.before 2013-12-19 12:28:08.921853000 +0100
+++ install/froxlor.sql 2013-12-19 12:30:07.327718667 +0100
@@ -1,3 +1,14 @@
+# change path from /var to /srv
+# webspaces: /srv/customers/webs
+# logs: /srv/customers/logs/
+# mails: /srv/customers/mail/
+# tmp: /srv/customers/tmp
+# cgi: /srv/www/cgi-bin/
+# fcgi: /srv/www/php-fcgi-scripts
+# backup: /srv/customers/backups/
+# asemen 20131219
+
+
CREATE TABLE `ftp_groups` (
`id` int(20) NOT NULL auto_increment,
`groupname` varchar(60) NOT NULL default '',
@@ -404,7 +415,7 @@
('customredirect', 'enabled', '1'),
('customredirect', 'default', '1'),
('perl', 'suexecworkaround', '0'),
- ('perl', 'suexecpath', '/var/www/cgi-bin/'),
+ ('perl', 'suexecpath', '/srv/www/cgi-bin/'),
('login', 'domain_login', '0'),
('login', 'maxloginattempts', '3'),
('login', 'deactivatetime', '900'),
@@ -417,27 +428,27 @@
('phpfpm', 'min_spare_servers', '5'),
('phpfpm', 'max_spare_servers', '35'),
('phpfpm', 'max_requests', '0'),
- ('phpfpm', 'tmpdir', '/var/customers/tmp/'),
+ ('phpfpm', 'tmpdir', '/srv/customers/tmp/'),
('phpfpm', 'peardir', '/usr/share/php/:/usr/share/php5/'),
('phpfpm', 'enabled_ownvhost', '0'),
('phpfpm', 'vhost_httpuser', 'froxlorlocal'),
('phpfpm', 'vhost_httpgroup', 'froxlorlocal'),
('phpfpm', 'idle_timeout', '30'),
- ('phpfpm', 'aliasconfigdir', '/var/www/php-fpm/'),
+ ('phpfpm', 'aliasconfigdir', '/srv/www/php-fpm/'),
('phpfpm', 'defaultini', '1'),
('phpfpm', 'vhost_defaultini', '1'),
- ('phpfpm', 'fastcgi_ipcdir', '/var/lib/apache2/fastcgi/'),
+ ('phpfpm', 'fastcgi_ipcdir', '/srv/lib/apache2/fastcgi/'),
('nginx', 'fastcgiparams', '/etc/nginx/fastcgi_params'),
('system', 'lastaccountnumber', '0'),
('system', 'lastguid', '9999'),
- ('system', 'documentroot_prefix', '/var/customers/webs/'),
- ('system', 'logfiles_directory', '/var/customers/logs/'),
+ ('system', 'documentroot_prefix', '/srv/customers/webs/'),
+ ('system', 'logfiles_directory', '/srv/customers/logs/'),
('system', 'ipaddress', 'SERVERIP'),
('system', 'apachereload_command', '/etc/init.d/apache2 reload'),
('system', 'last_traffic_run', '000000'),
('system', 'vmail_uid', '2000'),
('system', 'vmail_gid', '2000'),
- ('system', 'vmail_homedir', '/var/customers/mail/'),
+ ('system', 'vmail_homedir', '/srv/customers/mail/'),
('system', 'vmail_maildirname', 'Maildir'),
('system', 'bind_enable', '1'),
('system', 'bindconf_directory', '/etc/bind/'),
@@ -458,8 +469,8 @@
('system', 'apacheconf_htpasswddir', '/etc/apache2/htpasswd/'),
('system', 'webalizer_quiet', '2'),
('system', 'last_archive_run', '000000'),
- ('system', 'mod_fcgid_configdir', '/var/www/php-fcgi-scripts'),
- ('system', 'mod_fcgid_tmpdir', '/var/customers/tmp'),
+ ('system', 'mod_fcgid_configdir', '/srv/www/php-fcgi-scripts'),
+ ('system', 'mod_fcgid_tmpdir', '/srv/customers/tmp'),
('system', 'ssl_cert_file', '/etc/apache2/apache2.pem'),
('system', 'use_ssl', '0'),
('system', 'openssl_cnf', '[ req ]\r\ndefault_bits = 1024\r\ndistinguished_name = req_distinguished_name\r\nattributes = req_attributes\r\nprompt = no\r\noutput_password =\r\ninput_password =\r\n[ req_distinguished_name ]\r\nC = DE\r\nST = froxlor\r\nL = froxlor \r\nO = Testcertificate\r\nOU = froxlor \r\nCN = @@domain_name@@\r\nemailAddress = @@email@@ \r\n[ req_attributes ]\r\nchallengePassword =\r\n'),
@@ -493,7 +504,7 @@
('system', 'report_trafficmax', '90'),
('system', 'validate_domain', '1'),
('system', 'backup_enabled', '0'),
- ('system', 'backup_dir', '/var/customers/backups/'),
+ ('system', 'backup_dir', '/srv/customers/backups/'),
('system', 'backup_mysqldump_path', '/usr/bin/mysqldump'),
('system', 'backup_count', '1'),
('system', 'backup_bigfile', '1'),