19 lines
511 B
Bash
19 lines
511 B
Bash
#! /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
|