Config File
This commit is contained in:
parent
0e626b5028
commit
5f8f57023f
@ -333,13 +333,8 @@ config_file() {
|
|||||||
else
|
else
|
||||||
if [[ -n "${APT_CACHER_IP-}" ]]; then
|
if [[ -n "${APT_CACHER_IP-}" ]]; then
|
||||||
if [[ ! $APT_CACHER_IP == "none" ]]; then
|
if [[ ! $APT_CACHER_IP == "none" ]]; then
|
||||||
if [[ "$APT_CACHER_IP" =~ $ip_regex ]]; then
|
|
||||||
APT_CACHER="yes"
|
APT_CACHER="yes"
|
||||||
echo -e "${NETWORK}${BOLD}${DGN}APT-CACHER IP Address: ${BGN}$APT_CACHER_IP${CL}"
|
echo -e "${NETWORK}${BOLD}${DGN}APT-CACHER IP Address: ${BGN}$APT_CACHER_IP${CL}"
|
||||||
else
|
|
||||||
msg_error "Invalid IP Address format for APT-Cacher. Needs to be 0.0.0.0, was ${APT_CACHER_IP}"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
APT_CACHER=""
|
APT_CACHER=""
|
||||||
echo -e "${NETWORK}${BOLD}${DGN}APT-Cacher IP Address: ${BGN}No${CL}"
|
echo -e "${NETWORK}${BOLD}${DGN}APT-Cacher IP Address: ${BGN}No${CL}"
|
||||||
@ -497,7 +492,11 @@ config_file() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "${TAGS-}" ]]; then
|
if [[ -n "${TAGS-}" ]]; then
|
||||||
|
if [[ "$TAGS" == *"DEFAULT"* ]]; then
|
||||||
|
TAGS="${TAGS//DEFAULT/}"
|
||||||
|
TAGS="$TAGS;${var_tags:-}"
|
||||||
echo -e "${NETWORK}${BOLD}${DGN}Tags: ${BGN}$TAGS${CL}"
|
echo -e "${NETWORK}${BOLD}${DGN}Tags: ${BGN}$TAGS${CL}"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
TAGS="community-scripts;"
|
TAGS="community-scripts;"
|
||||||
if ADV_TAGS=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Custom Tags?[If you remove all, there will be no tags!]" 8 58 "${TAGS}" --title "Advanced Tags" 3>&1 1>&2 2>&3); then
|
if ADV_TAGS=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Custom Tags?[If you remove all, there will be no tags!]" 8 58 "${TAGS}" --title "Advanced Tags" 3>&1 1>&2 2>&3); then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user