forked from TheWrightServer/ProxmoxVE
cleanup
This commit is contained in:
parent
6acddc4475
commit
178ba7b895
@ -45,7 +45,7 @@ function default_settings() {
|
|||||||
MAC=""
|
MAC=""
|
||||||
VLAN=""
|
VLAN=""
|
||||||
SSH="no"
|
SSH="no"
|
||||||
VERB="yes"
|
VERB="no"
|
||||||
echo_default
|
echo_default
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -89,6 +89,8 @@ function update_script() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msg_ok "Hi, Josh"
|
||||||
|
|
||||||
start
|
start
|
||||||
build_container
|
build_container
|
||||||
description
|
description
|
||||||
|
@ -178,7 +178,6 @@ PCT_OPTIONS=(${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}})
|
|||||||
|
|
||||||
# Create container
|
# Create container
|
||||||
msg_info "Creating LXC Container"
|
msg_info "Creating LXC Container"
|
||||||
cmd="pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]}"
|
pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null ||
|
||||||
echo "$cmd" # debugging to see the expanded command
|
exit "A problem occured while trying to create container."
|
||||||
$cmd >/dev/null || exit "A problem occurred while trying to create the container."
|
|
||||||
msg_ok "LXC Container ${BL}$CTID${CL} ${GN}was successfully created."
|
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 MAC Address: ${BGN}Default${CL}"
|
||||||
echo -e "${DGN}Using VLAN Tag: ${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 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}"
|
echo -e "${BL}Creating a ${APP} LXC using the above default settings${CL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user