initial commit

This commit is contained in:
2019-04-15 22:27:04 +02:00
commit 10737263b8
2 changed files with 35 additions and 0 deletions

35
eval.sh Normal file
View File

@@ -0,0 +1,35 @@
#! /bin/bash
services="httpd rh-php72-php-fpm"
yum install tree -y &> /dev/null
clear
echo -ne "apache package "
rpm -qa|grep -q httpd && echo "1" ||echo 0
echo
echo -ne "php packages "
rpm -qa |grep -q "rh-php72-php-fpm" && echo 1 ||echo 0
echo
echo Service status
for i in $services ; do
systemctl status $i | head -n 2
done
echo
echo
echo répertoires de données et logs:
tree -ugD /srv -L 3
echo
echo
echo fichiers de configuration 1
cat /etc/httpd/conf.d/php-fpm.conf
echo
echo
echo fichiers de configuration 2
cat /etc/httpd/conf.d/wiki.example.com.conf
echo
echo -ne "vérification parefeu "
firewall-cmd --list-services | grep -q httpd && echo "0" || echo "1"

BIN
sujet.odt Normal file

Binary file not shown.