mirror of
https://github.com/willfarrell/docker-crontab.git
synced 2025-04-06 15:05:10 +02:00
fix: LOG_DIR is not used anywhere, remove it.
This commit is contained in:
parent
1a540df103
commit
18880befdb
@ -48,10 +48,8 @@ RUN apk update --quiet && \
|
||||
wget && \
|
||||
rm /var/cache/apk/* && \
|
||||
mkdir -p ${HOME_DIR}/jobs && \
|
||||
mkdir -p /var/log/crontab && \
|
||||
rm -rf /etc/periodic /etc/crontabs/root && \
|
||||
adduser -S docker -D && \
|
||||
chmod u=rwx,go=rw /var/log/crontab
|
||||
adduser -S docker -D
|
||||
|
||||
USER docker
|
||||
|
||||
|
@ -4,12 +4,10 @@ set -e
|
||||
|
||||
DOCKER_SOCK=/var/run/docker.sock
|
||||
CRONTAB_FILE=/etc/crontabs/docker
|
||||
LOG_DIR=/var/log/crontab
|
||||
|
||||
if [ -z "${HOME_DIR}" ] && [ -n "${TEST_MODE}" ]; then
|
||||
HOME_DIR=/tmp/crontab-docker-testing
|
||||
CRONTAB_FILE=${HOME_DIR}/test
|
||||
LOG_DIR=${HOME_DIR}/crontab
|
||||
elif [ -z "${HOME_DIR}" ]; then
|
||||
echo "HOME_DIR not set."
|
||||
exit 1
|
||||
@ -22,12 +20,6 @@ if [ -z "${DOCKER_HOST}" ] && [ -a "${DOCKER_PORT_2375_TCP}" ]; then
|
||||
export DOCKER_HOST="tcp://docker:2375"
|
||||
fi
|
||||
|
||||
if [ "${LOG_FILE}" == "" ]; then
|
||||
LOG_FILE=${LOG_DIR}/jobs.log
|
||||
mkdir -p "${LOG_DIR}"
|
||||
touch "${LOG_FILE}"
|
||||
fi
|
||||
|
||||
normalize_config() {
|
||||
JSON_CONFIG={}
|
||||
if [ -f "${HOME_DIR}/config.json" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user