fix: subs fixes

This commit is contained in:
fufsob committed 2026-09-10 09:42:25 +00:00
1 parent 2a319d1f88
commit b892384527
6 files changed
+127 -12

No files matched your search

+12
View File
@@ -96,6 +96,18 @@ in
true
)
# The fetcher's stdout has to land in the cache file. A newline between the
# pipeline and the redirect closes the pipeline, leaving a bare redirect
# that truncates the cache to zero bytes while the JSON goes to the journal.
(
assert pkgs.lib.hasInfix ''--tag-prefix community > "$CACHE_FILE.tmp"''
subscriptionOnlyStartScript;
assert pkgs.lib.hasInfix
''--tag-prefix community > "/var/lib/proxy-suite/subscriptions/sing-box/community.json.tmp"''
subscriptionOnlyUpdateScript;
true
)
# Invalid cache files are ignored and refreshed.
(
assert pkgs.lib.hasInfix "_proxy_suite_valid_subscription_cache()" subscriptionOnlyStartScript;