Multiple packages like nginx, lighttpd, and jvisu are installing things to /var/www already, and create that path implicitly. Make it explicit.
Signed-off-by: Alexander Dahl <[email protected]> --- rules/rootfs.in | 9 +++++++++ rules/rootfs.make | 3 +++ 2 files changed, 12 insertions(+) diff --git a/rules/rootfs.in b/rules/rootfs.in index 2b7c50363..93b53481d 100644 --- a/rules/rootfs.in +++ b/rules/rootfs.in @@ -256,6 +256,15 @@ config ROOTFS_VAR_TMP system reboots. Say 'y' here to ensure a '/var/tmp' directory is available at run-time. +config ROOTFS_VAR_WWW + bool + prompt "/var/www" + help + This directory is intended for webserver application data. + Usually things like html or javascript files go here. + Say 'y' here to ensure a '/var/www' directory is available at + run-time. + endmenu endif # ROOTFS diff --git a/rules/rootfs.make b/rules/rootfs.make index 1c1e5501c..656fbe4ba 100644 --- a/rules/rootfs.make +++ b/rules/rootfs.make @@ -145,6 +145,9 @@ ifdef PTXCONF_ROOTFS_VAR_OVERLAYFS @$(call install_link, rootfs, ../var.mount, \ /usr/lib/systemd/system/local-fs.target.requires/var.mount) endif +ifdef PTXCONF_ROOTFS_VAR_WWW + @$(call install_copy, rootfs, 0, 0, 0755, /var/www) +endif # # # # install files in rootfs -- 2.47.3
