OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/docker/entrypoint.sh

12 lines
291 B

#!/bin/bash
set -e
if [ "$(id -u)" = '0' ]; then
chown -R $APP_USER:$APP_USER $APP_PATH $APP_DATA /usr/local
sync
exec $APP_PATH/docker/gosu $APP_USER "$BASH_SOURCE" "$@"
fi
mkdir -p "$ATTACHMENTS_STORAGE_PATH"
chown -R "$(id -u)" "$ATTACHMENTS_STORAGE_PATH" 2>/dev/null || :
exec "$@"