Compare commits

..

No commits in common. "e5f14c352d1729503e7a4e502ddf8ca048a6a78e" and "bfb559aefd20390eb5957dd061ff9e293dccc87f" have entirely different histories.

9 changed files with 11 additions and 66 deletions

View File

@ -17,10 +17,10 @@ ECHO_PREFIX="### "
@(){
if [ -z $DRY_RUN ] ; then
! [ $QUIET ] \
&& echo -e "${ECHO_PREFIX}$@"
&& echo "${ECHO_PREFIX}$@"
"$@"
else
echo -e $@
echo $@
fi
return $?
}
@ -660,35 +660,19 @@ pctUpdateTurnkey(){
pctSet(){
[ "$2" ] \
&& @ pct set $1 \
${2}
${2} \
[ "$3" ] \
&& @ pct reboot $1
}
#
# pctSetNotes ID [DESCRIPTION]
# pctSetNotes ID
#
# XXX BUG: this deos not work yet...
pctSetNotes(){
# XXX for some reason this complains quote alot...
#[ "$DESCRIPTION" ] \
# && @ pct set $1 \
# "${DESCRIPTION:+--description \""${DESCRIPTION}"\"}"
local ID=$1
local NOTES="$(\
echo -e "${2:-${DESCRIPTION}}" \
| sed -e 's/^/#/')"
local CONF="$(cat "${CT_DIR}/${ID}.conf")"
local TEXT="\
"${NOTES}"
"${CONF}"
"
if [ "$DRY_RUN" ] ; then
echo "--- ${CT_DIR}/${ID}.conf ---"
echo -e "${TEXT}"
echo "--- ${CT_DIR}/${ID}.conf ---"
else
echo -e "${TEXT}" > "${CT_DIR}/${ID}.conf"
fi
[ "$DESCRIPTION" ] \
&& @ pct set $1 \
"${DESCRIPTION:+--description \""${DESCRIPTION}"\"}"
}

View File

@ -84,11 +84,11 @@ gate: gate-traefik
.PHONY: core
core: config $(CORE_CTs)
core: config $CORE_CTs)
.PHONY: minimal
minimal: core $(MINIMAL_CTs)
minimal: core $(BASE_CTs)
.PHONY: dev

View File

@ -1,12 +0,0 @@
# Gateway
- NAT/Firewall (iptables)
- Reverse-Proxy (traefik)
WAN: `${WAN_IPn}`
LAN: `${GATE_LAN_IPn}`
**Dashboard**:
- http://${CTHOSTNAME}.srv:8080/
- http://${GATE_LAN_IPn}:8080/

View File

@ -1,5 +0,0 @@
# Gitea
https://${CTHOSTNAME}.srv

View File

@ -1,5 +1,5 @@
# Nextcloud
https://${CTHOSTNAME}.srv
Hostname: `${CTHOSTNAME}`

View File

@ -1,5 +0,0 @@
# DHCP / DNS
admin: `${ADMIN_IPn}`
lan: `${LAN_IPn}`

View File

@ -1,9 +0,0 @@
# SSH (admin)
SSH landing into the network
${HOSTNAME}
${CTHOSTNAME}.srv
${WAN_SSH_IPn}
${LAN_IP} (DHCP)

View File

@ -1,5 +0,0 @@
# Syncthing
https://${CTHOSTNAME}.srv

View File

@ -1,3 +0,0 @@
# WireGuard