Tidy
This commit is contained in:
13
templates/watchtower/_basic.env
Normal file
13
templates/watchtower/_basic.env
Normal file
@ -0,0 +1,13 @@
|
||||
# Service settings
|
||||
TEMPLATE=watchtower
|
||||
|
||||
CONTAINER_NAME=watchtower
|
||||
|
||||
# Interval in seconds between checks.
|
||||
# Default is 1800 seconds (30 minutes).
|
||||
INTERVAL=1800
|
||||
|
||||
# Image settings
|
||||
IMAGE_REGISTRY="docker.io"
|
||||
IMAGE_REPO="containrrr/watchtower"
|
||||
IMAGE_TAG="latest"
|
@ -4,6 +4,9 @@
|
||||
# JDE
|
||||
# 2025-04-25
|
||||
|
||||
# This file is not required if you write your own template.
|
||||
|
||||
|
||||
# Print error message and exit with code 1
|
||||
# Usage: die "error message"
|
||||
die() {
|
||||
@ -19,12 +22,12 @@ load_env() {
|
||||
local env_file
|
||||
|
||||
# first load basic.env for the template defaults
|
||||
if [ -f "$script_dir/basic.env" ]; then
|
||||
if [ -f "$script_dir/_basic.env" ]; then
|
||||
set -a
|
||||
source "$script_dir/basic.env"
|
||||
source "$script_dir/_basic.env"
|
||||
set +a
|
||||
else
|
||||
echo "Warning: basic.env file not found at $script_dir/basic.env. Broken template?"
|
||||
echo "Warning: basic.env file not found at $script_dir/_basic.env. Broken template?"
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
@ -1,14 +1,6 @@
|
||||
# Service settings
|
||||
TEMPLATE=watchtower
|
||||
|
||||
CONTAINER_NAME=watchtower
|
||||
|
||||
# Interval in seconds between checks.
|
||||
# Default is 1800 seconds (30 minutes).
|
||||
INTERVAL=1800
|
||||
|
||||
# Image settings
|
||||
IMAGE_REGISTRY="docker.io"
|
||||
IMAGE_REPO="containrrr/watchtower"
|
||||
IMAGE_TAG="latest"
|
||||
|
||||
|
Reference in New Issue
Block a user