Verified Commit 0e685297 authored by Roman Lacko's avatar Roman Lacko
Browse files

Add cronjob script

parent c526fadf
Loading
Loading
Loading
Loading

cronjob

0 → 100755
+13 −0
Original line number Diff line number Diff line
#!/bin/sh

if [ $# -ne 1 ] || [ "$1" != 'nymfe' -a "$1" != 'musa' ]; then
	echo "usage: $0 <nymfe|musa>"
	exit 1
fi

hostgroup="$1"

python3.10 $HOME/git/tpm2-algtest-nspawn/tpm2-algtest-collect download "${hostgroup}" \
	&& python3.10 $HOME/git/tpm2-algtest-nspawn/tpm2-algtest-collect clean "${hostgroup}"

python3.10 $HOME/git/tpm2-algtest-nspawn/tpm2-algtest-collect --socket "${hostgroup}.sock" generate "${hostgroup}"