From 6705558e03d2b9bec4f251522e213174f0b4a185 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Thu, 29 Dec 2022 08:57:04 -0600 Subject: [PATCH] remove unnecessary build script --- build.sh | 3 --- entrypoint.sh | 33 --------------------------------- 2 files changed, 36 deletions(-) delete mode 100755 build.sh delete mode 100644 entrypoint.sh diff --git a/build.sh b/build.sh deleted file mode 100755 index a4cec37..0000000 --- a/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -# env DOCKER_BUILDKIT=1 -docker build --no-cache -t jbowdre/phpipam-agent . diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100644 index f3317cc..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh -set -e - -case "$IPAM_SCAN_INTERVAL" in - 5m) CRON_S="*/5 *" - ;; - 10m) CRON_S="*/10 *" - ;; - 15m) CRON_S="*/15 *" - ;; - 30m) CRON_S="*/30 *" - ;; - 1h) CRON_S="0 *" - ;; - 2h) CRON_S="0 */2" - ;; - 4h) CRON_S="0 */4" - ;; - 6h) CRON_S="0 */6" - ;; - 12h) CRON_S="0 */12" - ;; - *) CRON_S="*/15 *" - ;; -esac - -echo "$CRON_S * * * /usr/local/bin/php /opt/phpipam-agent/index.php update > /proc/self/fd/1 2>/proc/self/fd/2" > $CRONTAB_FILE -echo "$CRON_S * * * /usr/local/bin/php /opt/phpipam-agent/index.php discover > /proc/self/fd/1 2>/proc/self/fd/2" >> $CRONTAB_FILE -chmod 0644 $CRONTAB_FILE - -exec "$@" - -