ajout possibilité tester 1 seule machine

This commit is contained in:
2021-03-22 15:36:50 +01:00
parent 1a311bc1cf
commit 347a9362ad

View File

@@ -3,7 +3,12 @@ set -eu
IFS=$'\n\t'
source functions.sh
echo -ne "host;name;root history;bash history;<+CHANGEME+>\n"
for host in /srv/lxc/epsi/b2/* ; do
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=)