summaryrefslogtreecommitdiff
path: root/updater-ng
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2019-01-29 10:43:35 +0100
committerKarel Kočí <karel.koci@nic.cz>2019-01-29 10:43:35 +0100
commit25e86d453453ffadc4f4ec75d701d43b4da20987 (patch)
tree6c326335fa9d150f6215126e98808a7e7ae39530 /updater-ng
parentdea5961d96a697448ed521427767ce147cf26fb2 (diff)
downloadopenwrt-personal-pkgs-25e86d453453ffadc4f4ec75d701d43b4da20987.tar.gz
openwrt-personal-pkgs-25e86d453453ffadc4f4ec75d701d43b4da20987.tar.bz2
openwrt-personal-pkgs-25e86d453453ffadc4f4ec75d701d43b4da20987.zip
updater-ng: additional changes
Diffstat (limited to 'updater-ng')
-rw-r--r--updater-ng/Makefile11
1 files changed, 2 insertions, 9 deletions
diff --git a/updater-ng/Makefile b/updater-ng/Makefile
index 00ee314..90b8269 100644
--- a/updater-ng/Makefile
+++ b/updater-ng/Makefile
@@ -49,9 +49,6 @@ define Package/$(PKG_NAME)/install
# it is here only for reference and to make sure that it exists.
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/updater.config $(1)/etc/config/updater
-
- $(INSTALL_DIR) $(1)/etc/init.d
- $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/supervisor/init $(1)/etc/init.d/updater-journal-recover
endef
define Package/$(PKG_NAME)/conffiles
@@ -59,12 +56,6 @@ define Package/$(PKG_NAME)/conffiles
/etc/config/updater
endef
-define Package/$(PKG_NAME)/postinst
-if [ -z "$$IPKG_INSTROOT" ]; then
- /etc/init.d/updater enable || true
-fi
-endef
-
define Package/$(PKG_NAME)-supervisor
TITLE:=Next generation updater supervisor and its library
@@ -76,6 +67,8 @@ define Py3Package/$(PKG_NAME)-supervisor/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/supervisor/updater-supervisor $(1)/usr/bin/
+ $(INSTALL_DIR) $(1)/etc/init.d
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/supervisor/init $(1)/etc/init.d/updater-journal-recover
$(INSTALL_DIR) $(1)/etc/cron.d
$(INSTALL_CONF) $(PKG_BUILD_DIR)/src/supervisor/cron $(1)/etc/cron.d/updater