aboutsummaryrefslogtreecommitdiff
path: root/updater-ng-auto/Makefile
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-10-25 13:01:03 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-10-25 13:01:03 +0200
commit33083fab3bf2760dbd39cc68711e5e429eae74e7 (patch)
tree31914c07d5810ddcb516ed3802342bd07349664b /updater-ng-auto/Makefile
parentfefde1459054433d96510faba3103d62d90d667d (diff)
downloadturris-myrepo-33083fab3bf2760dbd39cc68711e5e429eae74e7.tar.gz
turris-myrepo-33083fab3bf2760dbd39cc68711e5e429eae74e7.tar.bz2
turris-myrepo-33083fab3bf2760dbd39cc68711e5e429eae74e7.zip
Update updater-ng-auto package
Diffstat (limited to 'updater-ng-auto/Makefile')
-rw-r--r--updater-ng-auto/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/updater-ng-auto/Makefile b/updater-ng-auto/Makefile
index 945717a..4c1935a 100644
--- a/updater-ng-auto/Makefile
+++ b/updater-ng-auto/Makefile
@@ -60,14 +60,15 @@ ifneq ($(PKG_BRANCH),)
echo "config override 'override'" >> $(1)/etc/config/updater
echo " option branch '$(PKG_BRANCH)'" >> $(1)/etc/config/updater
endif
+
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pkgupdate/init $(1)/etc/init.d/updater
+ $(INSTALL_DIR) $(1)/etc/cron.d
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pkgupdate/cron $(1)/etc/cron.d/updater
+
$(INSTALL_DIR) $(1)/etc/ssl
$(INSTALL_DATA) $(PKG_BUILD_DIR)/updater.pem $(1)/etc/ssl/updater.pem
-
- $(INSTALL_DIR) $(1)/etc/uci-defaults
- $(INSTALL_BIN) ./files/updater.defaults $(1)/etc/uci-defaults/updater
endef
define Package/$(PKG_NAME)/conffiles
@@ -79,12 +80,11 @@ endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || {
-/etc/init.d/updater enable || true
-# Run the uci-defaults now if we are installed at runtime and not flashed
-/etc/uci-defaults/updater && rm /etc/uci-defaults/updater
+ /etc/init.d/updater enable || true
}
+
# Remove morphered syntax from auto.lua
-# This matches all Install and Package commands not follwed by brackets. Whole
+# This matches all Install and Package commands not followed by brackets. Whole
# line is enclosed with brackets and between strings and tables are added commas.
AUTOTMP="$$(mktemp)"
sed -E '/^(Install|Package) +[^(]/{