diff --git a/dockerscripts/cmd.sh b/dockerscripts/cmd.sh index 2b1ab04..5629f8e 100755 --- a/dockerscripts/cmd.sh +++ b/dockerscripts/cmd.sh @@ -1,10 +1,2 @@ set -e - -if [ ! -z "$CRON_TAIL" ] -then - # crond running in background and log file reading every second by tail to STDOUT - crond -s /var/spool/cron/crontabs -b -L /var/log/cron/cron.log "$@" && tail -f /var/log/cron/cron.log -else - # crond running in foreground. log files can be retrive from /var/log/cron mount point - crond -s /var/spool/cron/crontabs -f -L /var/log/cron/cron.log "$@" -fi \ No newline at end of file +python3 -u /opt/miscale/Xiaomi_Scale.py \ No newline at end of file diff --git a/dockerscripts/entrypoint.sh b/dockerscripts/entrypoint.sh index 84e85f9..4ba1611 100755 --- a/dockerscripts/entrypoint.sh +++ b/dockerscripts/entrypoint.sh @@ -1,11 +1,3 @@ #!/bin/sh set -e - -rm -rf /var/spool/cron/crontabs && mkdir -m 0644 -p /var/spool/cron/crontabs - -[ "$(ls -A /etc/cron.d)" ] && cp -f /etc/cron.d/* /var/spool/cron/crontabs/ || true -[ ! -z "$CRON_STRINGS" ] && echo -e "$CRON_STRINGS\n" > /var/spool/cron/crontabs/CRON_STRINGS - -chmod -R 0644 /var/spool/cron/crontabs - exec "$@"