From b8d421155b2ec9415233be711198c447ab8de995 Mon Sep 17 00:00:00 2001 From: "Lockszmith (@wolfpack)" Date: Fri, 24 Jan 2025 13:58:30 -0500 Subject: [PATCH] Added .env.local linking to szetup --- .env.local.wolfpack.dotenv | 20 ++++++++++++++++++++ szetup.sh | 13 +++++++++---- 2 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .env.local.wolfpack.dotenv diff --git a/.env.local.wolfpack.dotenv b/.env.local.wolfpack.dotenv new file mode 100644 index 0000000..39a5029 --- /dev/null +++ b/.env.local.wolfpack.dotenv @@ -0,0 +1,20 @@ +# user-config/.env..local.yml +ACME_EMAIL="acme.admin@shefet.net" + +HOST_UID="3000" +HOST_GID="3000" + +INTERNAL_IP="192.168.2.33" + +# RUNTIPI's root on the docker host +# TIPI_VERSION="v3.8.0" +RUNTIPI_ROOT_FOLDER_HOST="/mnt/wolfpack/data/apps/runtipi" + +# ALT_ROOT_DOMAIN= # optional, alternative public domain +ROOT_DOMAIN=shefet.net +DOMAIN=shefet.net +LOCAL_DOMAIN=tipi.wolfpack.lan + +TZ="America/New_York" + +# vi: ft=sh diff --git a/szetup.sh b/szetup.sh index 415fc11..65f099b 100755 --- a/szetup.sh +++ b/szetup.sh @@ -66,11 +66,16 @@ for file in "${SECRETS[@]}"; do printf '\n' done +if [ -r "${SCRIPT_DIR}/.env.local.${SYS_NAME}.dotenv" ]; then + [ -L "${SCRIPT_DIR}/.env.local" ] && rm "${SCRIPT_DIR}/.env.local" + ln -srv "${SCRIPT_DIR}/.env.local.${SYS_NAME}.dotenv" "${SCRIPT_DIR}/.env.local" +fi + if [ "$2" == "--setup" ]; then - ./_bin/rtpctl.d setup "-f" - ./_bin/rtpctl.d setup "-f" $HOME/.local/bin/rtpctl - ./_bin/rtpctl.d setup "-f" $HOME/.local/bin/runtipictl - ./_bin/rtpctl.d setup "-f" $HOME/.local/bin/tpc + "${SCRIPT_DIR}/_bin/rtpctl.d" setup "-vf" + "${SCRIPT_DIR}/_bin/rtpctl.d" setup "-vf" $HOME/.local/bin/rtpctl + "${SCRIPT_DIR}/_bin/rtpctl.d" setup "-vf" $HOME/.local/bin/runtipictl + "${SCRIPT_DIR}/_bin/rtpctl.d" setup "-vf" $HOME/.local/bin/tpc fi # vim: set ft=sh expandtab tabstop=4 shiftwidth=4: