mirror of https://github.com/tteck/Proxmox.git
parent
e9094021d8
commit
a8433ea36c
|
@ -93,6 +93,8 @@ function default_settings() {
|
||||||
MAC=""
|
MAC=""
|
||||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||||
VLAN=""
|
VLAN=""
|
||||||
|
echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}"
|
||||||
|
SSH="no"
|
||||||
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}"
|
||||||
}
|
}
|
||||||
function advanced_settings() {
|
function advanced_settings() {
|
||||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||||
fi
|
fi
|
||||||
PW1=$(whiptail --inputbox "Set Root Password" 8 58 --title "PASSWORD(leave blank for automatic login)" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
PW1=$(whiptail --inputbox "Set Root Password (needed for root ssh access)" 8 58 --title "PASSWORD (leave blank for automatic login)" --cancel-button Exit-Script 3>&1 1>&2 2>&3)
|
||||||
exitstatus=$?
|
exitstatus=$?
|
||||||
if [ $exitstatus = 0 ]; then
|
if [ $exitstatus = 0 ]; then
|
||||||
if [ -z $PW1 ]; then
|
if [ -z $PW1 ]; then
|
||||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
||||||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if (whiptail --defaultno --title "SSH ACCESS" --yesno "Enable Root SSH Access?" 10 58); then
|
||||||
|
echo -e "${DGN}Enable Root SSH Access: ${BGN}Yes${CL}"
|
||||||
|
SSH="yes"
|
||||||
|
else
|
||||||
|
echo -e "${DGN}Enable Root SSH Access: ${BGN}No${CL}"
|
||||||
|
SSH="no"
|
||||||
|
fi
|
||||||
if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then
|
if (whiptail --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create ${APP} LXC?" --no-button Do-Over 10 58); then
|
||||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||||
else
|
else
|
||||||
|
@ -240,6 +249,7 @@ else
|
||||||
fi
|
fi
|
||||||
TEMP_DIR=$(mktemp -d)
|
TEMP_DIR=$(mktemp -d)
|
||||||
pushd $TEMP_DIR >/dev/null
|
pushd $TEMP_DIR >/dev/null
|
||||||
|
export SSH_ROOT=${SSH}
|
||||||
export CTID=$CT_ID
|
export CTID=$CT_ID
|
||||||
export PCT_OSTYPE=$var_os
|
export PCT_OSTYPE=$var_os
|
||||||
export PCT_OSVERSION=$var_version
|
export PCT_OSVERSION=$var_version
|
||||||
|
|
Loading…
Reference in New Issue