Added .env.local linking to szetup

This commit is contained in:
Lockszmith (@wolfpack) 2025-01-24 13:58:30 -05:00
parent a77da219fc
commit b8d421155b
2 changed files with 29 additions and 4 deletions

View File

@ -0,0 +1,20 @@
# user-config/.env.<system name>.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=<alt domain> # optional, alternative public domain
ROOT_DOMAIN=shefet.net
DOMAIN=shefet.net
LOCAL_DOMAIN=tipi.wolfpack.lan
TZ="America/New_York"
# vi: ft=sh

View File

@ -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: