This commit is contained in:
Josh Wright 2024-12-09 16:49:36 -05:00
parent 6acddc4475
commit 178ba7b895
3 changed files with 6 additions and 5 deletions

View File

@ -45,7 +45,7 @@ function default_settings() {
MAC=""
VLAN=""
SSH="no"
VERB="yes"
VERB="no"
echo_default
}
@ -89,6 +89,8 @@ function update_script() {
done
}
msg_ok "Hi, Josh"
start
build_container
description

View File

@ -178,7 +178,6 @@ PCT_OPTIONS=(${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}})
# Create container
msg_info "Creating LXC Container"
cmd="pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]}"
echo "$cmd" # debugging to see the expanded command
$cmd >/dev/null || exit "A problem occurred while trying to create the container."
pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null ||
exit "A problem occured while trying to create container."
msg_ok "LXC Container ${BL}$CTID${CL} ${GN}was successfully created."

View File

@ -151,7 +151,7 @@ echo_default() {
echo -e "${DGN}Using MAC Address: ${BGN}Default${CL}"
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}"
echo -e "${DGN}Enable Verbose Mode: ${BGN}Yes${CL}"
echo -e "${DGN}Enable Verbose Mode: ${BGN}No${CL}"
echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}"
}