forked from TheWrightServer/ProxmoxVE
cleanup
This commit is contained in:
parent
6acddc4475
commit
178ba7b895
@ -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
|
||||
|
@ -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."
|
||||
|
@ -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}"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user