commit 10737263b8e39da11d22a70fb4330e9286801256 Author: Thomas Constans Date: Mon Apr 15 22:27:04 2019 +0200 initial commit diff --git a/eval.sh b/eval.sh new file mode 100644 index 0000000..fd0af80 --- /dev/null +++ b/eval.sh @@ -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" \ No newline at end of file diff --git a/sujet.odt b/sujet.odt new file mode 100644 index 0000000..f893668 Binary files /dev/null and b/sujet.odt differ