make identity wait a finite amount

This commit is contained in:
Noah Masur 2024-03-24 15:15:07 -04:00
parent c3be92dcaf
commit 6b5892eb1d

View File

@ -6,13 +6,12 @@
wantedBy = [ "multi-user.target" ];
serviceConfig = { Type = "oneshot"; };
script = ''
while true; do
for i in $(seq 1 10); do
if [ -f ${config.identityFile} ]; then
echo "Identity file found."
exit 0
fi
sleep 5
exit 0
sleep 6
done
'';
};