graphene-os-server-infrastr.../fetch-info

22 lines
470 B
Plaintext
Raw Normal View History

2023-07-10 23:35:56 -04:00
#!/bin/bash
set -o errexit
user=root
. hosts.sh
rm -rf modules packages units
mkdir -p modules packages units
for host in ${hosts_all[@]}; do
(
2024-01-03 10:18:15 -05:00
ssh root@$host lsmod | awk '{ print $1 }' | sort > modules/$host
2023-07-10 23:35:56 -04:00
ssh root@$host pacman -Qqe > packages/$host
ssh root@$host systemctl list-unit-files --state=enabled --state=disabled --state=masked | sort > units/$host
2024-07-24 16:58:00 -04:00
ssh root@$host sysctl -a | sort > sysctl/$host
2023-07-10 23:35:56 -04:00
) &
done
wait