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
0799f83b
Commit
0799f83b
authored
Aug 23, 2012
by
tbrehm
Browse files
Fixed problem with ispconfig auth.log permissions.
parent
89a7426e
Changes
5
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/fedora.lib.php
View file @
0799f83b
...
...
@@ -1056,6 +1056,13 @@ class installer_dist extends installer_base {
exec
(
'chown -R ispconfig:ispconfig '
.
escapeshellarg
(
$install_dir
.
'/interface/invoices'
));
}
//* Create the ispconfig auth log file and set uid/gid
if
(
!
is_file
(
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
))
{
touch
(
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
}
exec
(
'chown ispconfig:ispconfig '
.
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
exec
(
'chmod 660 '
.
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
//* Remove Domain module as its functions are available in the client module now
if
(
@
is_dir
(
'/usr/local/ispconfig/interface/web/domain'
))
exec
(
'rm -rf /usr/local/ispconfig/interface/web/domain'
);
...
...
install/dist/lib/gentoo.lib.php
View file @
0799f83b
...
...
@@ -1032,6 +1032,13 @@ class installer extends installer_base
touch
(
$conf
[
'ispconfig_log_dir'
]
.
'/ispconfig.log'
);
}
//* Create the ispconfig auth log file and set uid/gid
if
(
!
is_file
(
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
))
{
touch
(
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
}
exec
(
'chown ispconfig:ispconfig '
.
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
exec
(
'chmod 660 '
.
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
rename
(
$install_dir
.
'/server/scripts/run-getmail.sh'
,
'/usr/local/bin/run-getmail.sh'
);
if
(
is_user
(
'getmail'
))
{
...
...
install/dist/lib/opensuse.lib.php
View file @
0799f83b
...
...
@@ -1098,6 +1098,13 @@ class installer_dist extends installer_base {
exec
(
'chown -R ispconfig:ispconfig '
.
escapeshellarg
(
$install_dir
.
'/interface/invoices'
));
}
//* Create the ispconfig auth log file and set uid/gid
if
(
!
is_file
(
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
))
{
touch
(
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
}
exec
(
'chown ispconfig:ispconfig '
.
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
exec
(
'chmod 660 '
.
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
//* Remove Domain module as its functions are available in the client module now
if
(
@
is_dir
(
'/usr/local/ispconfig/interface/web/domain'
))
exec
(
'rm -rf /usr/local/ispconfig/interface/web/domain'
);
...
...
install/lib/install.lib.php
View file @
0799f83b
...
...
@@ -723,7 +723,7 @@ function get_ispconfig_port_number() {
if
(
is_file
(
$ispconfig_vhost_file
))
{
$tmp
=
file_get_contents
(
$ispconfig_vhost_file
);
preg_match
(
$regex
,
$tmp
,
$matches
);
$port_number
=
intval
(
$matches
[
1
]);
$port_number
=
@
intval
(
$matches
[
1
]);
if
(
$port_number
>
0
)
{
return
$port_number
;
}
else
{
...
...
install/lib/installer_base.lib.php
View file @
0799f83b
...
...
@@ -1962,9 +1962,9 @@ class installer_base {
//* Create the ispconfig auth log file and set uid/gid
if
(
!
is_file
(
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
))
{
touch
(
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
exec
(
'chown ispconfig:ispconfig '
.
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
exec
(
'chmod 660 '
.
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
}
exec
(
'chown ispconfig:ispconfig '
.
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
exec
(
'chmod 660 '
.
$conf
[
'ispconfig_log_dir'
]
.
'/auth.log'
);
if
(
is_user
(
'getmail'
))
{
rename
(
$install_dir
.
'/server/scripts/run-getmail.sh'
,
'/usr/local/bin/run-getmail.sh'
);
...
...
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