mise au point

This commit is contained in:
2021-03-23 22:13:15 +01:00
parent 0a9447f718
commit ffe2a47a7c
4 changed files with 27 additions and 235 deletions

26
localeval.sh Normal file
View File

@@ -0,0 +1,26 @@
#! /bin/bash
set -eu
IFS=$'\n\t'
source functions.sh
echo -ne "host;name;php installed 1;version.php;php-fpm enabled\n"
if [ $# -ge 1 ] ; then
hostlist=/srv/lxc/epsi/b2/$1
else
hostlist=/srv/lxc/epsi/b2/*
fi
for host in $hostlist ; do
root=${host}/rootfs
host=$(basename $host)
hostname=$(grep HOSTNAME ${root}/etc/sysconfig/network 2>/dev/null| cut -f2 -d=)
test -z "${hostname}" && hostname=$(cat ${root}/etc/hostname)
test -f ${root}/etc/motd && user="$(cat ${root}/etc/motd | xargs)"
test -z "$user" && continue
echo -ne "${hostname};${user};"
pkgInstalled "${root}" php-fpm-7
#pkgInstalled "${root}" php7[34]-php-fpm
fileMustContains ${root}/srv/cours/www/version.php
serviceIsEnabled ${root} php-fpm
echo
done