Skip to content

Commit 9ed5194

Browse files
committed
Ensure that all files are writeable
See: #123
1 parent 6e7d861 commit 9ed5194

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docker-entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ done
3838

3939
if [[ ! -f /db/init_done ]]; then
4040
echo "No database directory. Initializing"
41+
touch /db/changes.log
42+
mkdir -p /db/diffs
43+
4144
if [[ "${USE_OAUTH_COOKIE_CLIENT}" = "yes" ]]; then
4245
/app/venv/bin/python /app/bin/oauth_cookie_client.py -o /db/cookie.jar -s /secrets/oauth-settings.json --format netscape
4346
# necessary to add newline at the end as oauth_cookie_client doesn't do that
@@ -46,7 +49,7 @@ if [[ ! -f /db/init_done ]]; then
4649
echo "# Netscape HTTP Cookie File" >/db/cookie.jar
4750
echo "${OVERPASS_COOKIE_JAR_CONTENTS}" >>/db/cookie.jar
4851
fi
49-
chown overpass /db/cookie.jar
52+
chown -R overpass:overpass /db/cookie.jar /db/changes.log /db/diffs
5053

5154
if [[ "$OVERPASS_MODE" = "clone" ]]; then
5255
(

0 commit comments

Comments
 (0)