Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix permissions when updating #37

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ This repository provides the [janeczku/dropbox](https://registry.hub.docker.com/

## Usage examples

### Optional first step
(shouldn't be neccesary unless you need to make changes to the `Dockerfile` or the `run` script).

# from the docker-dropbox directory
docker build . --tag janeczku/dropbox

### Quickstart

docker run -d --restart=always --name=dropbox janeczku/dropbox
Expand Down
1 change: 1 addition & 0 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ if [[ -z "$DBOX_SKIP_UPDATE" ]]; then
fi
fi

chmod -R a+rx /opt/dropbox/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is overly broad, and will set the executable bit on many files that aren't executable. I used

chmod a+rx /opt/dropbox/dropbox-lnx*/*.so

Copy link
Author

@bjfultn bjfultn Oct 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Changed as suggested.

echo "Starting dropboxd ($(cat /opt/dropbox/VERSION))..."
umask 002
exec su dropbox -s /bin/bash -c /opt/dropbox/dropboxd