From a6f9884315d8c0e2dd7405bb2a319c7cf299b53a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 19 Oct 2021 17:43:39 +0200 Subject: [PATCH] Update 99-configuration --- papermerge/rootfs/etc/cont-init.d/99-configuration | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/papermerge/rootfs/etc/cont-init.d/99-configuration b/papermerge/rootfs/etc/cont-init.d/99-configuration index 36309f046..f9ef36433 100644 --- a/papermerge/rootfs/etc/cont-init.d/99-configuration +++ b/papermerge/rootfs/etc/cont-init.d/99-configuration @@ -27,17 +27,19 @@ if [ ! -d /config ]; then echo "Creating /config" mkdir -p /config - chown -R abc:abc /config fi +chown -R abc:abc /config + if [ ! -d $MEDIADIR ]; then echo "Creating $MEDIADIR" mkdir -p $MEDIADIR - chown -R abc:abc $MEDIADIR fi +chown -R abc:abc $MEDIADIR + if [ ! -d $IMPORTDIR ]; then echo "Creating $IMPORTDIR" mkdir -p $IMPORTDIR - chown -R abc:abc $IMPORTDIR fi +chown -R abc:abc $IMPORTDIR