1402,7 → 1402,7 |
[ -e /lib/systemd/system/ulogd-$log_type.service ] || cp -f /lib/systemd/system/ulogd.service /lib/systemd/system/ulogd-$log_type.service |
[ -e /var/log/firewall/$log_type.log ] || echo "" > /var/log/firewall/$log_type.log |
cp -f $DIR_CONF/ulogd-sample.conf /etc/ulogd-$log_type.conf |
$SED "s?^nlgroup=.*?nlgroup=$nl?g" /etc/ulogd-$log_type.conf |
$SED "s?^group=.*?group=$nl?g" /etc/ulogd-$log_type.conf |
if [ "$ARCH" == "i586" ]; then $SED "s/lib64/lib/g" /etc/ulogd-$log_type.conf; fi |
cat << EOF >> /etc/ulogd-$log_type.conf |
[emu1] |
1980,9 → 1980,6 |
chown -R root:apache $DIR_DEST_ETC/* |
chmod -R 660 $DIR_DEST_ETC/* |
chmod ug+x $DIR_DEST_ETC/digest |
# Apply and save the firewall rules |
sh $DIR_DEST_BIN/alcasar-iptables.sh |
sleep 2 |
cd $DIR_INSTALL |
echo "" |
echo "#############################################################################" |