mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-27 05:42:14 +00:00
Compare commits
3 Commits
3b04382faf
...
61c9a80a09
| Author | SHA1 | Date | |
|---|---|---|---|
| 61c9a80a09 | |||
| 70f6aa0a7e | |||
| 2b2073d624 |
11
.pct-helpers
11
.pct-helpers
@ -457,15 +457,20 @@ saveConfig(){
|
||||
|
||||
saveLastRunConfig(){
|
||||
local cfg=$LAST_RUN_CONFIG
|
||||
local ct_cfg=$ID-$CTHOSTNAME.cfg
|
||||
echo "# Saving config to: $cfg and $ct_cfg"
|
||||
local ct_cfg
|
||||
if ! [ -z $ID ] && ! [ -z $CTHOSTNAME ] ; then
|
||||
local ct_cfg=$ID-$CTHOSTNAME.cfg
|
||||
fi
|
||||
echo "# Saving config to: $cfg ${ct_cfg:+and $ct_cfg}"
|
||||
{
|
||||
echo "#"
|
||||
echo "# This file is auto-generated, any changes here will be overwritten."
|
||||
echo "#"
|
||||
} > "$cfg"
|
||||
saveConfig -d -a "$cfg" ${XREAD_VARS[@]}
|
||||
cp "$cfg" "$ct_cfg"
|
||||
if ! [ -z ${ct_cfg} ] ; then
|
||||
cp "$cfg" "$ct_cfg"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -42,6 +42,22 @@ DFL_WAN_GATE=192.168.1.252
|
||||
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
|
||||
#
|
||||
# Here two optional variables are provided per service:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user