Added .env.local linking to szetup
This commit is contained in:
parent
a77da219fc
commit
b8d421155b
|
@ -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
|
13
szetup.sh
13
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:
|
||||
|
|
Loading…
Reference in New Issue