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" ]; wantedBy = [ "multi-user.target" ];
serviceConfig = { Type = "oneshot"; }; serviceConfig = { Type = "oneshot"; };
script = '' script = ''
while true; do for i in $(seq 1 10); do
if [ -f ${config.identityFile} ]; then if [ -f ${config.identityFile} ]; then
echo "Identity file found." echo "Identity file found."
exit 0 exit 0
fi fi
sleep 5 sleep 6
exit 0
done done
''; '';
}; };