From 21eda9dd1c0e0c5aa22b66d9de2122b46125ea09 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 15 Feb 2023 19:17:46 +0100 Subject: [PATCH] plugins: create cache dir for nginx and runstatedir for clixon Signed-off-by: Joachim Wiberg --- plugins/bootmisc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/bootmisc.c b/plugins/bootmisc.c index 3ce70e35..191c4055 100644 --- a/plugins/bootmisc.c +++ b/plugins/bootmisc.c @@ -246,6 +246,10 @@ static void setup(void *arg) if (whichp("restorecon")) run("restorecon /var/run/sudo /var/run/sudo/ts", "restorecon"); + /* XXX: temporary workaround pending new tmpfiles.so plugin */ + mksubsys("/var/cache/nxinx", 0755, "www-data", "www-data"); + makedir("/var/run/clixon", 0755); + /* Kernel symlinks, e.g. /proc/self/fd -> /dev/fd */ kernel_links();