From 212de4d81a9006c435d54bd88e17eec6639fc087 Mon Sep 17 00:00:00 2001 From: robin Date: Thu, 19 Feb 2026 19:06:58 +0100 Subject: [PATCH] feat: `$EBIL_HOST` --- ebil.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ebil.sh b/ebil.sh index 161fb23..afcc00e 100755 --- a/ebil.sh +++ b/ebil.sh @@ -6,6 +6,7 @@ set -euo pipefail EBIL_SITE="${EBIL_SITE:-""}" EBIL_PATH="${EBIL_PATH:-"."}" +EBIL_HOST="${EBIL_HOST:-"ebil.club"}" # util ======================================================================== @@ -68,7 +69,7 @@ push() { if [ -f "${EBIL_PATH}/index.txt" ]; then msg "" "custom curl message configured" "${EBIL_PATH}/index.txt" fi - rsync -rltzq --progress --delete --chmod=D755,F644 "${EBIL_PATH}/" "ebil.club:/var/ebil.club/${name}/${EBIL_SITE}" + rsync -rltzq --progress --delete --chmod=D755,F644 "${EBIL_PATH}/" "${EBIL_HOST}:/var/ebil.club/${name}/${EBIL_SITE}" } pull() { @@ -86,7 +87,7 @@ pull() { name="${EBIL_SITE%.ebil.club}" msg "pulling from" "${EBIL_SITE}" "to" "${EBIL_PATH}" - rsync -rltzq --progress "ebil.club:/var/ebil.club/${name}/${EBIL_SITE}/" "${EBIL_PATH}" + rsync -rltzq --progress "${EBIL_HOST}:/var/ebil.club/${name}/${EBIL_SITE}/" "${EBIL_PATH}" } main() { -- 2.51.2