vn-docker/redmine/entrypoint.sh

19 lines
405 B
Bash
Raw Permalink Normal View History

2022-10-14 17:42:18 +00:00
#!/bin/bash
REDMINE_LOCAL_PATH="/var/local/redmine"
if [ ! -z "$GIT_SYNC_FOLDER" ]; then
mkdir -p "$GIT_SYNC_FOLDER"
chown redmine:redmine "$GIT_SYNC_FOLDER"
fi
cat <<EOT >> "$REDMINE_LOCAL_PATH/update-repositories.env"
REDMINE_API_KEY=${REDMINE_API_KEY}
GIT_SYNC_FOLDER=${GIT_SYNC_FOLDER}
EOT
2022-10-14 18:58:49 +00:00
2022-10-14 17:42:18 +00:00
/usr/sbin/cron
crontab -u root /var/local/redmine/crontab
/docker-entrypoint.sh rails server -b 0.0.0.0