Commit 7d2b8eb5 authored by louiz’'s avatar louiz’

Always chown biboumi /var/lib/biboumi when the docker container starts

This fixes permission problems when we bind a volume that is not owned by
the biboumi user.
parent dec3e42a
......@@ -35,7 +35,6 @@ RUN git clone git:// && mkdir ./biboumi/build && cd ./bibou
RUN useradd biboumi
RUN mkdir /var/lib/biboumi
RUN chown -R biboumi:biboumi /var/lib/biboumi
COPY ./biboumi.cfg /etc/biboumi/biboumi.cfg
RUN chown -R biboumi:biboumi /etc/biboumi
......@@ -44,5 +43,3 @@ COPY ./ /
RUN chmod 755 /
USER biboumi
......@@ -5,7 +5,9 @@ sed -i s/BIBOUMI_HOSTNAME/${BIBOUMI_HOSTNAME:-biboumi.localhost}/ /etc/biboumi/b
sed -i s/BIBOUMI_ADMIN/${BIBOUMI_ADMIN:-}/ /etc/biboumi/biboumi.cfg
sed -i s/BIBOUMI_PASSWORD/${BIBOUMI_PASSWORD:-missing_password}/ /etc/biboumi/biboumi.cfg
chown -R biboumi:biboumi /var/lib/biboumi
echo "Running biboumi with the following conf: "
cat /etc/biboumi/biboumi.cfg
/usr/bin/biboumi /etc/biboumi/biboumi.cfg
runuser -u biboumi /usr/bin/biboumi /etc/biboumi/biboumi.cfg
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment