ajout possibilité tester 1 seule machine
This commit is contained in:
@@ -3,7 +3,12 @@ set -eu
|
|||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
source functions.sh
|
source functions.sh
|
||||||
echo -ne "host;name;root history;bash history;<+CHANGEME+>\n"
|
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
|
root=${host}/rootfs
|
||||||
host=$(basename $host)
|
host=$(basename $host)
|
||||||
hostname=$(grep HOSTNAME ${root}/etc/sysconfig/network 2>/dev/null| cut -f2 -d=)
|
hostname=$(grep HOSTNAME ${root}/etc/sysconfig/network 2>/dev/null| cut -f2 -d=)
|
||||||
|
|||||||
Reference in New Issue
Block a user