2022-10-14 17:42:18 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-10-29 10:29:35 +00:00
|
|
|
REDMINE_LOCAL_PATH="/var/local/redmine"
|
|
|
|
|
|
|
|
if [ ! -z "$GIT_SYNC_FOLDER" ]; then
|
2022-10-29 10:42:19 +00:00
|
|
|
mkdir -p "$GIT_SYNC_FOLDER"
|
|
|
|
chown redmine:redmine "$GIT_SYNC_FOLDER"
|
2022-10-29 10:29:35 +00:00
|
|
|
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
|