From b59e07245aa4220f9adf416e8ddc94ee376a6499 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 6 Jan 2020 09:45:20 -0500 Subject: [PATCH] alertmanager: checkpath to ensure storage dir The last commit was a red herring, the actual problem is that the storage dir was not there. --- sr.ht/alertmanager/APKBUILD | 2 +- sr.ht/alertmanager/alertmanager.initd | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sr.ht/alertmanager/APKBUILD b/sr.ht/alertmanager/APKBUILD index eaff446..87f522d 100644 --- a/sr.ht/alertmanager/APKBUILD +++ b/sr.ht/alertmanager/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Drew DeVault pkgname=alertmanager pkgver=0.19.0 -pkgrel=1 +pkgrel=3 pkgdesc="Prometheus Alertmanager" url="https://github.com/prometheus/alertmanager" arch="all" diff --git a/sr.ht/alertmanager/alertmanager.initd b/sr.ht/alertmanager/alertmanager.initd index 59daca7..9885d28 100644 --- a/sr.ht/alertmanager/alertmanager.initd +++ b/sr.ht/alertmanager/alertmanager.initd @@ -13,4 +13,5 @@ start_pre() { -m 644 -o prometheus:prometheus [ -n "$error_log" ] && checkpath -f "$error_log" \ -m 644 -o prometheus:prometheus + checkpath -d "$alertmanager_storage_path" -m 755 -o prometheus:prometheus } -- 2.45.2