Skip to content

Commit

Permalink
Ensure that all files are writeable
Browse files Browse the repository at this point in the history
See: #123
  • Loading branch information
wiktorn committed Mar 28, 2024
1 parent 6e7d861 commit 9ed5194
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ done

if [[ ! -f /db/init_done ]]; then
echo "No database directory. Initializing"
touch /db/changes.log
mkdir -p /db/diffs

if [[ "${USE_OAUTH_COOKIE_CLIENT}" = "yes" ]]; then
/app/venv/bin/python /app/bin/oauth_cookie_client.py -o /db/cookie.jar -s /secrets/oauth-settings.json --format netscape
# necessary to add newline at the end as oauth_cookie_client doesn't do that
Expand All @@ -46,7 +49,7 @@ if [[ ! -f /db/init_done ]]; then
echo "# Netscape HTTP Cookie File" >/db/cookie.jar
echo "${OVERPASS_COOKIE_JAR_CONTENTS}" >>/db/cookie.jar
fi
chown overpass /db/cookie.jar
chown -R overpass:overpass /db/cookie.jar /db/changes.log /db/diffs

if [[ "$OVERPASS_MODE" = "clone" ]]; then
(
Expand Down

0 comments on commit 9ed5194

Please sign in to comment.