Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
85f6fb3a
Commit
85f6fb3a
authored
May 02, 2014
by
Till Brehm
Browse files
Create symlink for dovecot-sql.conf on Centos in /etc
parent
42f82236
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
85f6fb3a
...
...
@@ -438,6 +438,8 @@ class installer_dist extends installer_base {
copy
(
"
$config_dir
/
$configfile
"
,
"
$config_dir
/
$configfile
~"
);
exec
(
"chmod 400
$config_dir
/
$configfile
~"
);
}
if
(
!@
file_exists
(
'/etc/dovecot-sql.conf'
))
exec
(
'ln -s /etc/dovecot/dovecot-sql.conf /etc/dovecot-sql.conf'
);
$content
=
rfsel
(
$conf
[
'ispconfig_install_dir'
]
.
'/server/conf-custom/install/fedora_dovecot-sql.conf.master'
,
"tpl/fedora_dovecot-sql.conf.master"
);
$content
=
str_replace
(
'{mysql_server_ispconfig_user}'
,
$conf
[
'mysql'
][
'ispconfig_user'
],
$content
);
...
...
@@ -450,7 +452,7 @@ class installer_dist extends installer_base {
exec
(
"chown root:root
$config_dir
/
$configfile
"
);
// Dovecot shall ignore mounts in website directory
exec
(
"doveadm mount add '/var/www/*' ignore"
);
if
(
is_installed
(
'doveadm'
))
exec
(
"doveadm mount add '/var/www/*' ignore
> /dev/null 2> /dev/null
"
);
}
...
...
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