From b3d3dd126104a23f3092ad3eb3867649a06570bd Mon Sep 17 00:00:00 2001 From: Din Music Date: Wed, 20 Nov 2024 21:14:08 +0000 Subject: [PATCH] images/openwrt: Ensure /var/log exists Package manager apk fails when installing packages because /var/log dir does not exist. Signed-off-by: Din Music --- images/openwrt.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/images/openwrt.yaml b/images/openwrt.yaml index dad26dbc..09b504b1 100644 --- a/images/openwrt.yaml +++ b/images/openwrt.yaml @@ -224,6 +224,15 @@ actions: architectures: - amd64 +- trigger: post-unpack + action: | + #!/bin/sh + # Ensure /var/log exists before running package manager. + # Otherwise, the command can fail due to missing directory. + mkdir -p /var/log + releases: + - snapshot + - trigger: post-files action: | #!/bin/sh