mktemp creates restricted files, we need to change permissions

This commit is contained in:
phil 2023-12-02 23:37:52 +01:00
parent 012c77f2ed
commit b60309a7e6

View file

@ -57,3 +57,4 @@ status=$(get_status_data)
printf '%s' "$status" >"$TMP_FILE" printf '%s' "$status" >"$TMP_FILE"
printf '\n' >> "$TMP_FILE" printf '\n' >> "$TMP_FILE"
mv "$TMP_FILE" "$PROM_FILE" mv "$TMP_FILE" "$PROM_FILE"
chmod 0644 "$PROM_FILE"