diff --git a/Dockerfile b/Dockerfile index 01705c2..de7d2b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ ENV TZ="" RUN apk add --no-cache \ bash sudo openssh-server shadow tzdata curl git dcron coreutils grep sed gawk util-linux ca-certificates tmux fastfetch prometheus-node-exporter \ - borgbackup \ + borgbackup docker-cli \ && mkdir -p \ /.ssh \ /backups \ diff --git a/entrypoint-script/variables.sh b/entrypoint-script/variables.sh index 770abaa..f5a6eae 100644 --- a/entrypoint-script/variables.sh +++ b/entrypoint-script/variables.sh @@ -10,7 +10,8 @@ function sepurator { if [ -n "${2:-}" ]; then local end="$2" else - local end="$COLUMNS" + local end + end=$(tput cols 2>/dev/null || echo "${COLUMNS:-80}") fi local start=1