Update
This commit is contained in:
25
script.sh
25
script.sh
@@ -1,11 +1,12 @@
|
||||
#!/bin/sh
|
||||
# Pour install l'agent GLPI
|
||||
# Pour install global
|
||||
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
RED='\033[1;31m'
|
||||
NOCOLOR='\033[0m'
|
||||
|
||||
echo "${YELLOW} *** ${NOCOLOR} Mise en place des droits"
|
||||
echo "${YELLOW} *** ${NOCOLOR} Mise en place des droits sur les scripts"
|
||||
echo "${NOCOLOR}"
|
||||
|
||||
chmod +x ./01-ssh/script.sh >> /dev/null
|
||||
@@ -16,6 +17,10 @@ chmod +x ./05-manageengine/script.sh >> /dev/null
|
||||
chmod +x ./06-snmp/script.sh >> /dev/null
|
||||
chmod +x ./07-DNS/script.sh >> /dev/null
|
||||
chmod +x ./08-NRPE/script.sh >> /dev/null
|
||||
chmod +x ./09-Firewall/script.sh >> /dev/null
|
||||
chmod +x ./10-Fail2ban/script.sh >> /dev/null
|
||||
chmod +x ./11-RemoveService/script.sh >> /dev/null
|
||||
chmod +x ./12-hardening/script.sh >> /dev/null
|
||||
|
||||
echo "${YELLOW} *** ${NOCOLOR} Mise en place des droits : ${GREEN} OK"
|
||||
echo "${NOCOLOR}"
|
||||
@@ -74,4 +79,20 @@ echo "${NOCOLOR}"
|
||||
./08-NRPE/script.sh
|
||||
|
||||
echo "${YELLOW} *** ${NOCOLOR} Fin du script : NRPE : ${GREEN} OK"
|
||||
echo "${NOCOLOR}"
|
||||
|
||||
echo "${YELLOW} *** ${NOCOLOR} Lancement du script : Firewall"
|
||||
echo "${NOCOLOR}"
|
||||
|
||||
./09-Firewall/script.sh
|
||||
|
||||
echo "${YELLOW} *** ${NOCOLOR} Fin du script : Firewall : ${GREEN} OK"
|
||||
echo "${NOCOLOR}"
|
||||
|
||||
echo "${YELLOW} *** ${NOCOLOR} Lancement du script : Fail2Ban"
|
||||
echo "${NOCOLOR}"
|
||||
|
||||
./10-Fail2ban/script.sh
|
||||
|
||||
echo "${YELLOW} *** ${NOCOLOR} Fin du script : Fail2Ban : ${GREEN} OK"
|
||||
echo "${NOCOLOR}"
|
||||
Reference in New Issue
Block a user