Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
57659baa
Commit
57659baa
authored
Apr 30, 2010
by
vogelor
Browse files
Added Log-Rotation to the installer
parent
86ae40e3
Changes
5
Hide whitespace changes
Inline
Side-by-side
docs/INSTALL_DEBIAN_5.0_dovecot_bind.txt
View file @
57659baa
...
...
@@ -224,27 +224,6 @@ rsync - fast remote file copy program (for backup)
-----------------------------------------------------------------------------------------------------------
Ispc log files rotate, for now manual add but to add in ispc installer:
/etc/logrotate.d/logispc3
/var/log/ispconfig/ispconfig.log {
weekly
missingok
rotate 4
compress
delaycompress
}
/var/log/ispconfig/cron.log {
weekly
missingok
rotate 4
compress
delaycompress
}
-----------------------------------------------------------------------------------------------------------
Possible errors and their solutions
------------------------------------
...
...
docs/INSTALL_DEBIAN_6.0_courier_mydns.txt
View file @
57659baa
...
...
@@ -360,27 +360,6 @@ rsync - fast remote file copy program (for backup)
-----------------------------------------------------------------------------------------------------------
Ispc log files rotate, for now manual add but to add in ispc installer:
/etc/logrotate.d/logispc3
/var/log/ispconfig/ispconfig.log {
weekly
missingok
rotate 4
compress
delaycompress
}
/var/log/ispconfig/cron.log {
weekly
missingok
rotate 4
compress
delaycompress
}
-----------------------------------------------------------------------------------------------------------
Possible errors and their solutions
------------------------------------
...
...
install/install.php
View file @
57659baa
<?php
/*
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
Copyright (c) 2007
-2010
, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
...
...
install/lib/installer_base.lib.php
View file @
57659baa
<?php
/*
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
Copyright (c) 2007
-2010
, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
...
...
@@ -154,7 +154,7 @@ class installer_base {
caselog
(
"mysql --default-character-set="
.
$conf
[
'mysql'
][
'charset'
]
.
" -h '"
.
$conf
[
'mysql'
][
'host'
]
.
"' -u '"
.
$conf
[
'mysql'
][
'admin_user'
]
.
"' '"
.
$conf
[
'mysql'
][
'database'
]
.
"' < '"
.
ISPC_INSTALL_ROOT
.
"/install/sql/ispconfig3.sql' &> /dev/null"
,
__FILE__
,
__LINE__
,
'read in ispconfig3.sql'
,
'could not read in ispconfig3.sql'
);
}
else
{
caselog
(
"mysql --default-character-set="
.
$conf
[
'mysql'
][
'charset'
]
.
" -h '"
.
$conf
[
'mysql'
][
'host'
]
.
"' -u '"
.
$conf
[
'mysql'
][
'admin_user'
]
.
"' -p'"
.
$conf
[
'mysql'
][
'admin_password'
]
.
"' '"
.
$conf
[
'mysql'
][
'database'
]
.
"' < '"
.
ISPC_INSTALL_ROOT
.
"/install/sql/ispconfig3.sql' &> /dev/null"
,
caselog
(
"mysql --default-character-set="
.
$conf
[
'mysql'
][
'charset'
]
.
" -h '"
.
$conf
[
'mysql'
][
'host'
]
.
"' -u '"
.
$conf
[
'mysql'
][
'admin_user'
]
.
"' -p'"
.
$conf
[
'mysql'
][
'admin_password'
]
.
"' '"
.
$conf
[
'mysql'
][
'database'
]
.
"' < '"
.
ISPC_INSTALL_ROOT
.
"/install/sql/ispconfig3.sql' &> /dev/null"
,
__FILE__
,
__LINE__
,
'read in ispconfig3.sql'
,
'could not read in ispconfig3.sql'
);
}
$db_tables
=
$this
->
db
->
getTables
();
...
...
@@ -1388,8 +1388,28 @@ class installer_base {
exec
(
'mv /usr/local/ispconfig/server/scripts/run-getmail.sh /usr/local/bin/run-getmail.sh'
);
if
(
is_user
(
'getmail'
))
exec
(
'chown getmail /usr/local/bin/run-getmail.sh'
);
exec
(
'chmod 744 /usr/local/bin/run-getmail.sh'
);
//* Add Log-Rotation
if
(
is_dir
(
'/etc/logrotate.d'
)){
unlink
(
'/etc/logrotate.d/logispc3'
);
$fh
=
fopen
(
'/etc/logrotate.d/logispc3'
,
'w'
);
fwrite
(
$fh
,
"/var/log/ispconfig/ispconfig.log {
\n
"
.
" weekly
\n
"
.
" missingok
\n
"
.
" rotate 4
\n
"
.
" compress
\n
"
.
" delaycompress
\n
"
.
"}
\n
"
.
"/var/log/ispconfig/cron.log {
\n
"
.
" weekly
\n
"
.
" missingok
\n
"
.
" rotate 4
\n
"
.
" compress
\n
"
.
" delaycompress
\n
"
.
"}"
);
fclose
(
$fh
);
}
}
public
function
configure_dbserver
()
...
...
install/update.php
View file @
57659baa
<?php
/*
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
Copyright (c) 2007
-2010
, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
...
...
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