From 2738fc3728a4e77dcd4786ade5a3404bc80f32b3 Mon Sep 17 00:00:00 2001 From: John Locke Date: Sat, 14 Jan 2017 09:07:36 -0800 Subject: [PATCH] Run as www-data user, with permission to write ledgersmb.conf file --- Dockerfile | 4 +++- README.md | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1b6ce7f..e6b2588 100644 --- a/Dockerfile +++ b/Dockerfile @@ -80,6 +80,8 @@ RUN mkdir -p /tmp && \ # Internal Port Expose EXPOSE 5762 -#USER www-data +# If ledgersmb.conf does not exist, www-data user needs to be able to create it. +RUN chown www-data /srv/ledgersmb +USER www-data CMD ["start.sh"] diff --git a/README.md b/README.md index ee793be..e8376dc 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,8 @@ This is a work in progress to make a docker image for running LedgerSMB. It shou # Supported tags and respective `Dockerfile` links - `dev-master` - Master branch from git, unstable -- `1.5`, `1.5.x` - Latest release tarball from 1.5 branch -- `1.4`, `latest` - Latest tagged release of git 1.4 branch +- `1.5`, `1.5.x`, `latest` - Latest release tarball from 1.5 branch +- `1.4`, `1.4.x` - Latest tagged release of git 1.4 branch # What is LedgerSMB?