Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 1413 2014-07-16 07:14:44Z richard $
|
2 |
# $Id: alcasar.sh 1418 2014-07-24 14:45:11Z richard $
|
3 |
|
3 |
|
4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
5 |
|
5 |
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
6 |
# ALCASAR Install script - CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...]
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
7 |
# Ce programme est un logiciel libre ; This software is free and open source
|
Line 1382... |
Line 1382... |
1382 |
# add SURFmap plugin
|
1382 |
# add SURFmap plugin
|
1383 |
tar xzf $DIR_CONF/nfsen/SURFmap_v3.3b1.tar.gz -C /tmp/
|
1383 |
tar xzf $DIR_CONF/nfsen/SURFmap_v3.3b1.tar.gz -C /tmp/
|
1384 |
cp $DIR_CONF/nfsen/install-surfmap.sh /tmp/SURFmap/install.sh
|
1384 |
cp $DIR_CONF/nfsen/install-surfmap.sh /tmp/SURFmap/install.sh
|
1385 |
cd /tmp/SURFmap
|
1385 |
cd /tmp/SURFmap
|
1386 |
/usr/bin/sh install.sh
|
1386 |
/usr/bin/sh install.sh
|
1387 |
tar xzf $DIR_CONF/nfsen/GeoLiteCityv4_v6.tar.gz /var/www/nfsen/plugins/SURFmap/lib/MaxMind
|
- |
|
1388 |
chown -R apache:apache /var/www/nfsen/plugins/SURFmap/lib/MaxMind/GeoLiteCity*
|
- |
|
- |
|
1387 |
|
1389 |
# clear the installation
|
1388 |
# clear the installation
|
1390 |
cd $DirTmp
|
1389 |
cd $DirTmp
|
1391 |
rm -rf /tmp/nfsen-1.3.6p1/
|
1390 |
rm -rf /tmp/nfsen-1.3.6p1/
|
1392 |
rm -rf /tmp/SURFmap/
|
1391 |
rm -rf /tmp/SURFmap/
|
1393 |
} # End of nfsen ()
|
1392 |
} # End of nfsen ()
|
Line 1625... |
Line 1624... |
1625 |
#Autorise la lecture seule 2 des 3 fichiers de log concernés, havp est traité dans le script d'init de havp
|
1624 |
#Autorise la lecture seule 2 des 3 fichiers de log concernés, havp est traité dans le script d'init de havp
|
1626 |
[ -e /var/log/fail2ban.log ] || touch /var/log/fail2ban.log
|
1625 |
[ -e /var/log/fail2ban.log ] || touch /var/log/fail2ban.log
|
1627 |
[ -e /var/Save/logs/security/watchdog.log ] || touch /var/Save/logs/security/watchdog.log
|
1626 |
[ -e /var/Save/logs/security/watchdog.log ] || touch /var/Save/logs/security/watchdog.log
|
1628 |
chmod 644 /var/log/fail2ban.log
|
1627 |
chmod 644 /var/log/fail2ban.log
|
1629 |
chmod 644 /var/Save/logs/security/watchdog.log
|
1628 |
chmod 644 /var/Save/logs/security/watchdog.log
|
- |
|
1629 |
/usr/bin/touch /var/log/auth.log
|
- |
|
1630 |
|
1630 |
|
1631 |
|
1631 |
# Edition de l'unité fail2ban
|
1632 |
# Edition de l'unité fail2ban
|
1632 |
[ -e /usr/lib/systemd/system/fail2ban.service ] || cp /usr/lib/systemd/system/fail2ban.service /usr/lib/systemd/system/fail2ban.service.default
|
1633 |
[ -e /usr/lib/systemd/system/fail2ban.service ] && cp /usr/lib/systemd/system/fail2ban.service /usr/lib/systemd/system/fail2ban.service.default
|
1633 |
$SED '/Type/a\PIDFile=/var/run/fail2ban/fail2ban.pid' /usr/lib/systemd/system/fail2ban.service
|
1634 |
$SED '/Type/a\PIDFile=/var/run/fail2ban/fail2ban.pid' /usr/lib/systemd/system/fail2ban.service
|
- |
|
1635 |
$SED '/After=*/c After=syslog.target network.target httpd.service' /usr/lib/systemd/system/fail2ban.service
|
1634 |
|
1636 |
|
1635 |
|
1637 |
|
1636 |
} #Fin de fail2ban_install()
|
1638 |
} #Fin de fail2ban_install()
|
1637 |
|
1639 |
|
1638 |
##################################################################
|
1640 |
##################################################################
|