From 54a6593b6ffea67d1f01e1313898fa54e678a922 Mon Sep 17 00:00:00 2001 From: Wren Turkal Date: Wed, 27 May 2020 23:20:21 -0700 Subject: [PATCH] acme: remove cron entry on package removal Previously, the cron config was not removed on uninstall. This change fixes that. Signed-off-by: Wren Turkal --- net/acme/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/acme/Makefile b/net/acme/Makefile index b3dd099885..3a65e8cad3 100644 --- a/net/acme/Makefile +++ b/net/acme/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=acme PKG_VERSION:=2.8.6 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/acmesh-official/acme.sh/archive/$(PKG_VERSION).tar.gz @@ -57,6 +57,11 @@ define Package/acme/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/acme.sh $(1)/usr/lib/acme/acme.sh endef +define Package/acme/prerm +#!/bin/sh +sed -i '/\/etc\/init\.d\/acme start/d' /etc/crontabs/root +endef + define Package/acme-dnsapi SECTION:=net CATEGORY:=Network -- 2.30.2