remove tar1090 sh before replacing it

This commit is contained in:
Matthias Wirth
2024-11-10 16:09:16 +01:00
parent 574e09350b
commit f72fbcfd43

View File

@@ -223,6 +223,7 @@ if ! diff tar1090.sh "$ipath"/tar1090.sh &>/dev/null; then
systemctl stop "$service" 2>/dev/null || true
fi
done < <(echo "$instances")
rm -f "$ipath"/tar1090.sh
cp tar1090.sh "$ipath"
fi