Added audit 2023.
This commit is contained in:
parent
dc22011eed
commit
edef2cfd5b
|
@ -1,7 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 2023-01-04 Cpm
|
||||
|
||||
align_dpkgs()
|
||||
{
|
||||
local source_file="$1"
|
||||
|
@ -10,41 +8,41 @@ align_dpkgs()
|
|||
# Find the longest position.
|
||||
local max=0
|
||||
while read -r line; do
|
||||
if [[ $line =~ '||/ N' ]]; then
|
||||
local pos=$(expr index "$line" "$letter")
|
||||
if (( $pos > $max)); then
|
||||
max=$pos
|
||||
fi
|
||||
fi
|
||||
if [[ $line =~ '||/ N' ]]; then
|
||||
local pos=$(expr index "$line" "$letter")
|
||||
if (( $pos > $max)); then
|
||||
max=$pos
|
||||
fi
|
||||
fi
|
||||
done < "$source_file"
|
||||
|
||||
# Insert spaces.
|
||||
local currentpos=0
|
||||
local middle=""
|
||||
while read -r line; do
|
||||
#echo -e "$line\n"
|
||||
if [[ $line =~ '||/ N' ]]; then
|
||||
local currentpos=$(expr index "$line" "$letter")
|
||||
currentpos=$(($currentpos-1))
|
||||
local diff=$(($max-currentpos-1))
|
||||
middle=$(printf %${diff}s)
|
||||
#echo -e "$line\n"
|
||||
if [[ $line =~ '||/ N' ]]; then
|
||||
local currentpos=$(expr index "$line" "$letter")
|
||||
currentpos=$(($currentpos-1))
|
||||
local diff=$(($max-currentpos-1))
|
||||
middle=$(printf %${diff}s)
|
||||
|
||||
local start=${line:0:currentpos}
|
||||
local end=${line:currentpos}
|
||||
echo "${start}${middle}${end}"
|
||||
local start=${line:0:currentpos}
|
||||
local end=${line:currentpos}
|
||||
echo "${start}${middle}${end}"
|
||||
|
||||
elif [[ $line =~ 'ii ' ]]; then
|
||||
local start=${line:0:currentpos}
|
||||
local end=${line:currentpos}
|
||||
echo "${start}${middle}${end}"
|
||||
fi
|
||||
elif [[ $line =~ 'ii ' ]]; then
|
||||
local start=${line:0:currentpos}
|
||||
local end=${line:currentpos}
|
||||
echo "${start}${middle}${end}"
|
||||
fi
|
||||
done < "$source_file"
|
||||
}
|
||||
|
||||
# ##############################################################################
|
||||
|
||||
# Put all dpkg -l output in one file.
|
||||
dpkg -l --no-pager > tmp
|
||||
echo "" > tmp
|
||||
for guest in $(cat machines.txt) ;
|
||||
do
|
||||
ssh -t admin666@$guest dpkg -l --no-pager >> tmp
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,75 @@
|
|||
===== aunt =====
|
||||
|
||||
No non-free or contrib packages installed on aunt! rms would be proud.
|
||||
===== mother =====
|
||||
|
||||
No non-free or contrib packages installed on mother! rms would be proud.
|
||||
===== audio =====
|
||||
|
||||
No non-free or contrib packages installed on audio.a-lec.org! rms would be proud.
|
||||
===== audio.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on audio.chalec.org! rms would be proud.
|
||||
===== ctrlv.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on ctrlv.chalec.org! rms would be proud.
|
||||
===== dns =====
|
||||
|
||||
No non-free or contrib packages installed on dns.libre-en-communs.org! rms would be proud.
|
||||
===== forge.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on forge.chalec.org! rms would be proud.
|
||||
===== gestion.a-lec.org =====
|
||||
|
||||
No non-free or contrib packages installed on gestion.a-lec.org! rms would be proud.
|
||||
===== git =====
|
||||
|
||||
No non-free or contrib packages installed on git.a-lec.org! rms would be proud.
|
||||
===== isengard.libre-en-communs.org =====
|
||||
|
||||
No non-free or contrib packages installed on isengard.libre-en-communs.org! rms would be proud.
|
||||
===== libreverse.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on libreverse.chalec.org! rms would be proud.
|
||||
===== mail =====
|
||||
|
||||
No non-free or contrib packages installed on mail.a-lec.org! rms would be proud.
|
||||
===== nuage.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on nuage.chalec.org! rms would be proud.
|
||||
===== pad.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on pad.chalec.org! rms would be proud.
|
||||
===== petition.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on petition.chalec.org! rms would be proud.
|
||||
===== stats.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on stats.chalec.org! rms would be proud.
|
||||
===== status.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on status.chalec.org! rms would be proud.
|
||||
===== toot =====
|
||||
|
||||
No non-free or contrib packages installed on toot.a-lec.org! rms would be proud.
|
||||
===== toot.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on toot.chalec.org! rms would be proud.
|
||||
===== video.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on video.chalec.org! rms would be proud.
|
||||
===== visio.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on visio.chalec.org! rms would be proud.
|
||||
===== www =====
|
||||
|
||||
No non-free or contrib packages installed on www.a-lec.org! rms would be proud.
|
||||
===== www.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on www.chalec.org! rms would be proud.
|
||||
===== xmpp =====
|
||||
|
||||
No non-free or contrib packages installed on xmpp.a-lec.org! rms would be proud.
|
||||
===== xmpp.chalec.org =====
|
||||
|
||||
No non-free or contrib packages installed on xmpp.chalec.org! rms would be proud.
|
Loading…
Reference in New Issue