Skip to content

Commit

Permalink
Merge pull request #4 from alexandreroman/master
Browse files Browse the repository at this point in the history
fix container initialization
  • Loading branch information
olavgg authored Oct 16, 2018
2 parents 041519d + ad098a6 commit 21563a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env sh

# If the data folder is empty it is most likely because
# If the data folder does not contain file 'initialized' it is most likely because
# the container is fresh and has been started with
# the volume option
if ! [ "$(ls -A /usr/local/share/moin/data)" ]; then
if ! [ "$(ls -A /usr/local/share/moin/data/initialized 2>/dev/null)" ]; then
cp -r /usr/local/share/moin/bootstrap-data/* /usr/local/share/moin/data/
touch /usr/local/share/moin/data/initialized
chown -R www-data:www-data /usr/local/share/moin/data
fi

Expand Down

0 comments on commit 21563a0

Please sign in to comment.