mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
acme: fix incompatibilty with image builder
Signed-off-by: Glen Huang <i@glenhuang.com>
This commit is contained in:
committed by
Toke Høiland-Jørgensen
parent
82720ba624
commit
e1f03d7ee4
@@ -50,13 +50,17 @@ endef
|
|||||||
|
|
||||||
define Package/acme-common/postinst
|
define Package/acme-common/postinst
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
grep -q '/etc/init.d/acme' /etc/crontabs/root 2>/dev/null && exit 0
|
if [ -z "$$IPKG_INSTROOT" ]; then
|
||||||
echo "0 0 * * * /etc/init.d/acme start" >> /etc/crontabs/root
|
grep -q '/etc/init.d/acme' /etc/crontabs/root 2>/dev/null && exit 0
|
||||||
|
echo "0 0 * * * /etc/init.d/acme start" >> /etc/crontabs/root
|
||||||
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/acme-common/prerm
|
define Package/acme-common/prerm
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sed -i '\|/etc/init.d/acme|d' /etc/crontabs/root
|
if [ -z "$$IPKG_INSTROOT" ]; then
|
||||||
|
sed -i '\|/etc/init.d/acme|d' /etc/crontabs/root
|
||||||
|
fi
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ HOOK=/usr/lib/acme/hook
|
|||||||
LOG_TAG=acme
|
LOG_TAG=acme
|
||||||
|
|
||||||
# shellcheck source=net/acme/files/functions.sh
|
# shellcheck source=net/acme/files/functions.sh
|
||||||
. /usr/lib/acme/functions.sh
|
. "$IPKG_INSTROOT/usr/lib/acme/functions.sh"
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
log debug "cleaning up"
|
log debug "cleaning up"
|
||||||
|
|||||||
Reference in New Issue
Block a user