Compare commits

..

No commits in common. "61c9a80a092ddf0e79d1e43ce713c7be6d194fdc" and "3b04382fafe5c04fd741bf83d45ef8bd60609675" have entirely different histories.

2 changed files with 3 additions and 24 deletions

View File

@ -457,20 +457,15 @@ saveConfig(){
saveLastRunConfig(){ saveLastRunConfig(){
local cfg=$LAST_RUN_CONFIG local cfg=$LAST_RUN_CONFIG
local ct_cfg local ct_cfg=$ID-$CTHOSTNAME.cfg
if ! [ -z $ID ] && ! [ -z $CTHOSTNAME ] ; then echo "# Saving config to: $cfg and $ct_cfg"
local ct_cfg=$ID-$CTHOSTNAME.cfg
fi
echo "# Saving config to: $cfg ${ct_cfg:+and $ct_cfg}"
{ {
echo "#" echo "#"
echo "# This file is auto-generated, any changes here will be overwritten." echo "# This file is auto-generated, any changes here will be overwritten."
echo "#" echo "#"
} > "$cfg" } > "$cfg"
saveConfig -d -a "$cfg" ${XREAD_VARS[@]} saveConfig -d -a "$cfg" ${XREAD_VARS[@]}
if ! [ -z ${ct_cfg} ] ; then cp "$cfg" "$ct_cfg"
cp "$cfg" "$ct_cfg"
fi
} }

View File

@ -42,22 +42,6 @@ DFL_WAN_GATE=192.168.1.252
DFL_WAN_SSH_IP=192.168.1.102/24 DFL_WAN_SSH_IP=192.168.1.102/24
# Port configuration...
#
# If the device has multiple ports it is recommended to select the WAN
# and ADMIN on the opposite ends as to minimize the chance of erronius
# connections.
#
# Administration port (ADMIN)
# This is mainly used for setup and for sirect access to the internal
# ADMIN network.
DFL_ADMIN_PORT=enp2s0
# General connection port (WAN)
# This is used to communicate with the services installed.
DFL_WAN_PORT=enp5s0
# Web app/service domain configuration # Web app/service domain configuration
# #
# Here two optional variables are provided per service: # Here two optional variables are provided per service: