Commit ceed6877 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Get the CRL from cron too

In case something fails in updater and the updater is not updated while
the CRL is…
parent 868eb3e2
......@@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=cznic-cacert-bundle
PKG_VERSION:=15
PKG_VERSION:=16
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.labs.nic.cz/turris/misc.git
PKG_SOURCE:=$(PKG_NAME).tar.gz
......@@ -36,7 +36,7 @@ endif
define Package/$(PKG_NAME)
TITLE:=$(PKG_NAME)
DEPENDS:= $(TURRIS_DEPS)
DEPENDS:= $(TURRIS_DEPS) +vixie-cron
endef
# The built is empty. But as there's no makefile in the git repo, we need to
......@@ -59,6 +59,9 @@ define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cacerts/get-api-crl $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/cron.d
$(INSTALL_DATA) ./files/get-crl.cron $(1)/etc/cron.d/get-api
endef
define Package/$(PKG_NAME)/postinst
......
MAILTO=""
*/30 * * * * root /usr/bin/get-api-crl
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment