### put the current hostname into the psad C binaries
### (kmsgsd and psadwatchd).
perl -p -i -e 'use Sys::Hostname; my $hostname = hostname(); s/HOSTNAME(\s+)_?CHANGE.?ME_?/HOSTNAME${1}$hostname/' %_sysconfdir/%name/psad.conf
-perl -p -i -e 'use Sys::Hostname; my $hostname = hostname(); s/HOSTNAME(\s+)_?CHANGE.?ME_?/HOSTNAME${1}$hostname/' %_sysconfdir/%name/psadwatchd.conf
/bin/touch %psadlogdir/fwdata
chown root.root %psadlogdir/fwdata
if grep -q "EMAIL.*root.*localhost" /etc/psad/psad.conf;
then
echo "[+] You can edit the EMAIL_ADDRESSES variable in /etc/psad/psad.conf"
-echo " /etc/psad/psadwatchd.conf to have email alerts sent to an address"
-echo " other than root\@localhost"
+echo " to have email alerts sent to an address other than root\@localhost"
fi
if grep -q "HOME_NET.*CHANGEME" /etc/psad/psad.conf;
### put the current hostname into the psad C binaries
### (kmsgsd and psadwatchd).
perl -p -i -e 'use Sys::Hostname; my $hostname = hostname(); s/HOSTNAME(\s+)_?CHANGE.?ME_?/HOSTNAME${1}$hostname/' %_sysconfdir/%name/psad.conf
-perl -p -i -e 'use Sys::Hostname; my $hostname = hostname(); s/HOSTNAME(\s+)_?CHANGE.?ME_?/HOSTNAME${1}$hostname/' %_sysconfdir/%name/psadwatchd.conf
/bin/touch %psadlogdir/fwdata
chown root.root %psadlogdir/fwdata
if grep -q "EMAIL.*root.*localhost" /etc/psad/psad.conf;
then
echo "[+] You can edit the EMAIL_ADDRESSES variable in /etc/psad/psad.conf"
-echo " /etc/psad/psadwatchd.conf to have email alerts sent to an address"
-echo " other than root\@localhost"
+echo " to have email alerts sent to an address other than root\@localhost"
fi
if grep -q "HOME_NET.*CHANGEME" /etc/psad/psad.conf;
### put the current hostname into the psad C binaries
### (kmsgsd and psadwatchd).
perl -p -i -e 'use Sys::Hostname; my $hostname = hostname(); s/HOSTNAME(\s+)_?CHANGE.?ME_?/HOSTNAME${1}$hostname/' %_sysconfdir/%name/psad.conf
-perl -p -i -e 'use Sys::Hostname; my $hostname = hostname(); s/HOSTNAME(\s+)_?CHANGE.?ME_?/HOSTNAME${1}$hostname/' %_sysconfdir/%name/psadwatchd.conf
/bin/touch %psadlogdir/fwdata
chown root.root %psadlogdir/fwdata
if grep -q "EMAIL.*root.*localhost" /etc/psad/psad.conf;
then
echo "[+] You can edit the EMAIL_ADDRESSES variable in /etc/psad/psad.conf"
-echo " /etc/psad/psadwatchd.conf to have email alerts sent to an address"
-echo " other than root\@localhost"
+echo " to have email alerts sent to an address other than root\@localhost"
fi
if grep -q "HOME_NET.*CHANGEME" /etc/psad/psad.conf;