Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
0799f83b
Commit
0799f83b
authored
Aug 23, 2012
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problem with ispconfig auth.log permissions.
parent
89a7426e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
3 deletions
+24
-3
install/dist/lib/fedora.lib.php
install/dist/lib/fedora.lib.php
+7
-0
install/dist/lib/gentoo.lib.php
install/dist/lib/gentoo.lib.php
+7
-0
install/dist/lib/opensuse.lib.php
install/dist/lib/opensuse.lib.php
+7
-0
install/lib/install.lib.php
install/lib/install.lib.php
+1
-1
install/lib/installer_base.lib.php
install/lib/installer_base.lib.php
+2
-2
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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