From: Christian Heller Date: Fri, 10 Oct 2025 12:47:52 +0000 (+0200) Subject: Fixes. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/%7B%7Bprefix%7D%7D/template?a=commitdiff_plain;h=cc0c1bd748260681343f266e7968dfbae2e31396;p=config Fixes. --- diff --git a/trixie/scripts/lib/ensure_packages_of_tags.sh b/trixie/scripts/lib/ensure_packages_of_tags.sh index 1a21e79..d6b9283 100644 --- a/trixie/scripts/lib/ensure_packages_of_tags.sh +++ b/trixie/scripts/lib/ensure_packages_of_tags.sh @@ -7,7 +7,7 @@ ensure_packages_of_tags() { local APT_ARG="-q -q -o 'Dpkg::Options::=--force-confnew' install" local TAG - for TAG in $@; do + for TAG in "$@"; do prefixed_msg_no_nl "For tag '${TAG}', " local TEST TEST=$(echo "${TAG}" | cut -d':' -f1) @@ -18,7 +18,7 @@ ensure_packages_of_tags() { printf 'checking if installed … ' if dpkg-query -Wf '${Package}\n' | grep '^'"${PACKAGE}"'$' > /dev/null; then echo 'yup, keeping!' - apt_digested ${APT_ARG} ${PACKAGE} + apt_digested "${APT_ARG}" "${PACKAGE}" else echo 'nope, nothing to keep.' fi @@ -30,12 +30,12 @@ ensure_packages_of_tags() { continue fi local PACKAGES - PACKAGES=$(cat "${PATH_APTMARK_TAG}" | sed -E 's/#.*//g' | sed -z 's/\n/ /g' | sed 's/ */ /g' | cut -c 2-) + PACKAGES=$(sed -E 's/#.*//g' < "${PATH_APTMARK_TAG}" | sed -z 's/\n/ /g' | sed 's/ */ /g' | cut -c 2-) if [ -z "${PACKAGES}" ]; then echo 'nothing to install.' else echo "ensuring installation of: ${PACKAGES}" - apt_digested ${APT_ARG} ${PACKAGES} + apt_digested "${APT_ARG}" "${PACKAGES}" fi done prefixed_msg_exit diff --git a/trixie/scripts/setup_server.sh b/trixie/scripts/setup_server.sh index d030bfb..7b8898c 100755 --- a/trixie/scripts/setup_server.sh +++ b/trixie/scripts/setup_server.sh @@ -27,7 +27,7 @@ CADDY_PASSWORD="$2" HOSTNAME="$3" FQDN="$4" if [ -f "${PATH_REL_DIR_APTMARK}/${HOSTING_APTMARK_TAG}" ]; then - INSTALL_TAGS="${INSTALL_TAGS} ${HOSTING_SERVICE}" + INSTALL_TAGS="${INSTALL_TAGS} ${HOSTING_APTMARK_TAG}" else abort 'Unrecognized hosting service.' fi