diff options
| author | Rodion Goritskov <rodion@goritskov.com> | 2026-02-18 23:03:28 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-02-23 23:58:25 +0000 |
| commit | 396a9451d4fde4e7af181cde00e13cbbf1536925 (patch) | |
| tree | bd24c2785c36fcbe13133129f4cc0ee64a4f23c5 | |
| parent | 71bcef3854c720648fbd62a585c85863effdba9e (diff) | |
services: Add configuration action to miniflux-service-type.
* gnu/services/web.scm (miniflux-shepherd-service): Add configuration action.
* gnu/tests/web.scm (run-miniflux-test): Add configuration action check.
Change-Id: I515653070cc0c39fcbe31fef19d8745a1a8d47cb
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/services/web.scm | 5 | ||||
| -rw-r--r-- | gnu/tests/web.scm | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 4ba2a2268d8..3354b3295b8 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm | |||
| @@ -2460,7 +2460,10 @@ Use absolute path like @code{\"/var/run/miniflux/miniflux.sock\"} for a Unix soc | |||
| 2460 | "-config-file" | 2460 | "-config-file" |
| 2461 | #$config-file) | 2461 | #$config-file) |
| 2462 | #:log-file #$log-file)) | 2462 | #:log-file #$log-file)) |
| 2463 | (stop #~(make-kill-destructor))))))) | 2463 | (stop #~(make-kill-destructor)) |
| 2464 | (actions | ||
| 2465 | (list | ||
| 2466 | (shepherd-configuration-action config-file)))))))) | ||
| 2464 | 2467 | ||
| 2465 | (define (miniflux-accounts config) | 2468 | (define (miniflux-accounts config) |
| 2466 | (match-record config <miniflux-configuration> | 2469 | (match-record config <miniflux-configuration> |
diff --git a/gnu/tests/web.scm b/gnu/tests/web.scm index 4f07eb967a8..5c8905f62b8 100644 --- a/gnu/tests/web.scm +++ b/gnu/tests/web.scm | |||
| @@ -1016,6 +1016,12 @@ HTTP-PORT." | |||
| 1016 | #:times 10 | 1016 | #:times 10 |
| 1017 | #:delay 2))) | 1017 | #:delay 2))) |
| 1018 | 1018 | ||
| 1019 | (test-assert "Miniflux configuration action returns an existing file path" | ||
| 1020 | (marionette-eval '(with-shepherd-action 'miniflux ('configuration) | ||
| 1021 | results | ||
| 1022 | (file-exists? (car results))) | ||
| 1023 | marionette)) | ||
| 1024 | |||
| 1019 | (test-end))))) | 1025 | (test-end))))) |
| 1020 | (gexp->derivation (string-append name "-test") test)) | 1026 | (gexp->derivation (string-append name "-test") test)) |
| 1021 | 1027 | ||
