From 2076319342feb1ad0825d8522605d5727a897aa5 Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Tue, 9 Apr 2019 18:39:57 +0200 Subject: [PATCH] Fix the /volume path used for the seafile data --- Dockerfile | 2 ++ assets/docker-entrypoint.sh | 1 + assets/seafile-entrypoint.sh | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3195cd5..f828658 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,9 +38,11 @@ RUN groupadd -g $GID -o $UNAME ;\ # Copy over the Docker entrypoint. COPY assets/docker-entrypoint.sh /entrypoint.sh + # Copy over the required files for Seafile/SupervisorD. COPY assets/supervisord.conf /home/seafuser/ COPY assets/infinite-seaf-cli-start.sh /home/seafuser/ COPY assets/seafile-entrypoint.sh /home/seafuser/entrypoint.sh +RUN mkdir /volume ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] diff --git a/assets/docker-entrypoint.sh b/assets/docker-entrypoint.sh index 91443e5..23906f8 100644 --- a/assets/docker-entrypoint.sh +++ b/assets/docker-entrypoint.sh @@ -42,6 +42,7 @@ fi chown $UID.$GID -R /home/seafuser/supervisord.conf chown $UID.$GID -R /home/seafuser/infinite-seaf-cli-start.sh chown $UID.$GID -R /home/seafuser/entrypoint.sh +chown $UID.$GID -R /volume # Run the Seafile client as the container user. su - $UNAME << EO diff --git a/assets/seafile-entrypoint.sh b/assets/seafile-entrypoint.sh index 3176c6a..e603906 100644 --- a/assets/seafile-entrypoint.sh +++ b/assets/seafile-entrypoint.sh @@ -26,7 +26,6 @@ supervisord_log=~/.supervisord/supervisord.log # Prepare the directories. mkdir ~/.seafile mkdir ~/.supervisord -mkdir ~/share # Safely initialise the Seafile client. /usr/bin/seaf-cli init -d ~/.seafile