Skip to content

Commit

Permalink
add flag -p to mkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikBadenhop committed Nov 11, 2024
1 parent 9095541 commit d994527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions moodle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ RUN curl -L https://github.com/tmuras/moosh/archive/refs/tags/1.21.tar.gz -o moo
ln -s /moosh/moosh.php /usr/local/bin/moosh

RUN /downloadMoodle.sh
RUN mkdir /bitnami/moodledata/lang && \
RUN mkdir -p /bitnami/moodledata/lang && \
MAJOR_MINOR=$(echo "$MOODLE_VERSION" | cut -d. -f1,2) && \
curl -L https://download.moodle.org/download.php/direct/langpack/4.1/de.zip --output de.zip && \
curl -L https://download.moodle.org/download.php/direct/langpack/${MAJOR_MINOR}/de.zip --output de.zip && \
unzip de.zip -d /bitnami/moodledata/lang

# Install plugins to the image
Expand Down
2 changes: 1 addition & 1 deletion moodle/scripts/init/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ MODULE=dbp info "Replacing config files with ours"
# if [ -f "/tmp/de.zip" ] && [ ! -d /bitnami/moodledata/lang/de ]; then \
# MODULE=dbp warn "Installing german language pack"
# mkdir -p /bitnami/moodledata/lang
# unzip -q /tmp/de.zip -d /bitnami/moodledata/lang
# unzip -qo /tmp/de.zip -d /bitnami/moodledata/lang
# rm -f /tmp/de.zip
# fi

Expand Down

0 comments on commit d994527

Please sign in to comment.