initial commit
This commit is contained in:
18
eval.sh
Normal file
18
eval.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#! /bin/bash
|
||||
|
||||
|
||||
function e {
|
||||
echo -ne "${1}\t"
|
||||
}
|
||||
|
||||
echo -ne "$(hostname -s)\t$(cat /etc/motd )\t"
|
||||
if ( rpm -qa | grep -qE '^php-[57]' ) ; then e 0 ; else e 1 ; fi
|
||||
|
||||
if [ -f /etc/yum.repos.d/remi.repo ] ; then e 1 ; else e 0 ; fi
|
||||
|
||||
if ( systemctl status php-fpm &>/dev/null || systemctl status php73-php-fpm &> /dev/null ) ; then e 1 ; else e 0 ; fi
|
||||
|
||||
if [ -f /var/www/html/version.php ] ; then e 1 ; else e 0 ; fi
|
||||
|
||||
if ( curl localhost/version.php 2>/dev/null |grep -q 7.3 ) ; then e 1 ; else e 0 ; fi
|
||||
echo
|
||||
Reference in New Issue
Block a user