mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2024-12-22 05:35:00 -05:00
unified info fetching script
This commit is contained in:
parent
d49deb3db6
commit
a957abd347
20
fetch-info
Executable file
20
fetch-info
Executable file
@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
(
|
||||
ssh root@$host lsmod | sort > modules/$host
|
||||
ssh root@$host pacman -Qqe > packages/$host
|
||||
ssh root@$host systemctl list-unit-files --state=enabled --state=disabled --state=masked | sort > units/$host
|
||||
) &
|
||||
done
|
||||
|
||||
wait
|
@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
user=root
|
||||
|
||||
. hosts.sh
|
||||
|
||||
rm -rf modules
|
||||
mkdir -p modules
|
||||
|
||||
for host in ${hosts_all[@]}; do
|
||||
echo $host
|
||||
ssh root@$host lsmod | sort > modules/$host
|
||||
echo
|
||||
done
|
@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
user=root
|
||||
|
||||
. hosts.sh
|
||||
|
||||
rm -rf packages
|
||||
mkdir -p packages
|
||||
|
||||
for host in ${hosts_all[@]}; do
|
||||
echo $host
|
||||
ssh root@$host pacman -Qqe > packages/$host
|
||||
echo
|
||||
done
|
16
fetch-units
16
fetch-units
@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
user=root
|
||||
|
||||
. hosts.sh
|
||||
|
||||
rm -rf units
|
||||
mkdir -p units
|
||||
|
||||
for host in ${hosts_all[@]}; do
|
||||
echo $host
|
||||
ssh root@$host systemctl list-unit-files --state=enabled --state=disabled --state=masked | sort > units/$host
|
||||
echo
|
||||
done
|
Loading…
Reference in New Issue
Block a user