Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Warden
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pavel Valach
Warden
Commits
4a781047
Commit
4a781047
authored
12 years ago
by
Tomáš Plesník
Browse files
Options
Downloads
Patches
Plain Diff
uprava generovani konfiguracnich souboru
parent
5127fd20
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/warden-server/sh/update.sh
+7
-10
7 additions, 10 deletions
src/warden-server/sh/update.sh
with
7 additions
and
10 deletions
src/warden-server/sh/update.sh
+
7
−
10
View file @
4a781047
...
@@ -203,8 +203,7 @@ $perl_switches
...
@@ -203,8 +203,7 @@ $perl_switches
SetHandler perl-script
SetHandler perl-script
PerlHandler Warden::ApacheDispatch
PerlHandler Warden::ApacheDispatch
SSLOptions +StdEnvVars
SSLOptions +StdEnvVars
</Location>
</Location>"
>
$apache_conf_file
2>
$err
;
ret_val
=
`
echo
$?
`
"
>
$apache_conf_file
2>
$err
;
ret_val
=
`
echo
$?
`
if
[
$ret_val
-eq
0
]
;
then
if
[
$ret_val
-eq
0
]
;
then
echo
"OK"
echo
"OK"
...
@@ -243,8 +242,7 @@ $ssl_cert_file
...
@@ -243,8 +242,7 @@ $ssl_cert_file
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# SSL_CA_FILE - path to CA certificate file
# SSL_CA_FILE - path to CA certificate file
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$ssl_ca_file
$ssl_ca_file
"
>
$client_conf_file
2>
$err
;
ret_val
=
`
echo
$?
`
"
>
$client_conf_file
2>
$err
;
ret_val
=
`
echo
$?
`
if
[
$ret_val
-eq
0
]
;
then
if
[
$ret_val
-eq
0
]
;
then
echo
"OK"
echo
"OK"
...
@@ -269,7 +267,7 @@ $ssl_ca_file
...
@@ -269,7 +267,7 @@ $ssl_ca_file
if
[
-z
"
$syslog_facility
"
]
;
then
if
[
-z
"
$syslog_facility
"
]
;
then
syslog_facility
=
`
cat
$server_conf_file
|
grep
'$FACILITY'
`
syslog_facility
=
`
cat
$server_conf_file
|
grep
'$FACILITY'
`
else
else
syslog_facility
=
'$SYSLOG_FACILITY = local7;'
syslog_facility
=
'$SYSLOG_FACILITY =
"
local7
"
;'
fi
fi
db_name
=
`
cat
$server_conf_file
|
grep
'$DB_NAME'
`
db_name
=
`
cat
$server_conf_file
|
grep
'$DB_NAME'
`
db_user
=
`
cat
$server_conf_file
|
grep
'$DB_USER'
`
db_user
=
`
cat
$server_conf_file
|
grep
'$DB_USER'
`
...
@@ -281,9 +279,9 @@ $ssl_ca_file
...
@@ -281,9 +279,9 @@ $ssl_ca_file
fi
fi
valid_strings
=
`
cat
$server_conf_file
|
grep
-A
3
'%VALID_STRINGS'
`
valid_strings
=
`
cat
$server_conf_file
|
grep
-A
3
'%VALID_STRINGS'
`
if
[
-z
"
$valid_strings
"
]
;
then
if
[
-z
"
$valid_strings
"
]
;
then
valid_strings
=
"
\
%
VALID_STRINGS = (
valid_strings
=
"%VALID_STRINGS = (
\
'
type
\
'
=> [
\
'
portscan
\
'
,
\
'
bruteforce
\
'
,
\
'
probe
\
'
,
\
'
spam
\
'
,
\
'
phishing
\
'
,
\
'
botnet_c_c
\
'
,
\
'
dos
\
'
,
\
'
malware
\
'
,
\
'
copyright
\
'
,
\
'
webattack
\
'
,
\
'
test
\
'
,
\
'
other
\
'
],
\
"
type
\
"
=> [
\
"
portscan
\
"
,
\
"
bruteforce
\
"
,
\
"
probe
\
"
,
\
"
spam
\
"
,
\
"
phishing
\
"
,
\
"
botnet_c_c
\
"
,
\
"
dos
\
"
,
\
"
malware
\
"
,
\
"
copyright
\
"
,
\
"
webattack
\
"
,
\
"
test
\
"
,
\
"
other
\
"
],
\
'
source_type
\
'
=> [
\
'
IP
\
'
,
\
'
URL
\
'
,
\
'
Reply-To:
\
'
]
\
"
source_type
\
"
=> [
\
"
IP
\
"
,
\
"
URL
\
"
,
\
"
Reply-To:
\
"
]
);"
);"
fi
fi
...
@@ -340,8 +338,7 @@ $max_events_limit
...
@@ -340,8 +338,7 @@ $max_events_limit
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# VALID_STRINGS - validation hash containing allowed event attributes
# VALID_STRINGS - validation hash containing allowed event attributes
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$valid_strings
$valid_strings
"
>
$server_conf_file
2>
$err
;
ret_val
=
`
echo
$?
`
"
>
$server_conf_file
2>
$err
;
ret_val
=
`
echo
$?
`
if
[
$ret_val
-eq
0
]
;
then
if
[
$ret_val
-eq
0
]
;
then
echo
"OK"
echo
"OK"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment