Skip to content
Snippets Groups Projects
Commit 4a781047 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

uprava generovani konfiguracnich souboru

parent 5127fd20
No related branches found
No related tags found
No related merge requests found
...@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment