package/mender: create directory containing Mender state script

Mender state-scripts are essentially "hooks" that can be provided to
influence the update flow.

They should be placed inside /etc/mender/scripts and the directory must
contain a file containing the current state-script format version. It is
currently "2".

Signed-off-by: Mirza Krak <mirza.krak@northern.tech>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Mirza Krak 2018-08-20 15:09:04 +02:00 committed by Thomas Petazzoni
parent 9b297505eb
commit 1770251816

View File

@ -8,6 +8,9 @@ MENDER_VERSION = 1.4.0
MENDER_SITE = $(call github,mendersoftware,mender,$(MENDER_VERSION)) MENDER_SITE = $(call github,mendersoftware,mender,$(MENDER_VERSION))
define MENDER_INSTALL_CONFIG_FILES define MENDER_INSTALL_CONFIG_FILES
$(INSTALL) -d -m 755 $(TARGET_DIR)/etc/mender/scripts
echo -n "2" > $(TARGET_DIR)/etc/mender/scripts/version
$(INSTALL) -D -m 0644 package/mender/mender.conf \ $(INSTALL) -D -m 0644 package/mender/mender.conf \
$(TARGET_DIR)/etc/mender/mender.conf $(TARGET_DIR)/etc/mender/mender.conf
$(INSTALL) -D -m 0644 package/mender/tenant.conf \ $(INSTALL) -D -m 0644 package/mender/tenant.conf \