mirror of https://github.com/tteck/Proxmox.git
enable root ssh access during lxc creation (#765)
This commit is contained in:
parent
9f192aeec2
commit
b54ba602ea
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -208,6 +210,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -237,6 +246,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -95,6 +95,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -114,7 +116,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -221,6 +223,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -250,6 +259,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -95,6 +95,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -114,7 +116,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -221,6 +223,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -250,6 +259,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ exitstatus=$?
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then PW1="Automatic Login" PW=" ";
|
||||
|
@ -216,6 +218,7 @@ if [ "$CT_TYPE" == "1" ]; then
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
12
ct/n8n-v4.sh
12
ct/n8n-v4.sh
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -113,7 +115,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -220,6 +222,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -249,6 +258,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
12
ct/omv-v4.sh
12
ct/omv-v4.sh
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -95,6 +95,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -114,7 +116,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -221,6 +223,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -250,6 +259,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -97,6 +97,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -108,7 +110,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -215,6 +217,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -244,6 +253,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -95,6 +95,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -106,7 +108,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -213,6 +215,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -242,6 +251,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -113,7 +115,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -220,6 +222,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -249,6 +258,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -93,6 +93,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -104,7 +106,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -211,6 +213,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -240,6 +249,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -95,6 +95,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -106,7 +108,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -213,6 +215,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -242,6 +251,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -94,6 +94,8 @@ function default_settings() {
|
|||
MAC=""
|
||||
echo -e "${DGN}Using VLAN Tag: ${BGN}Default${CL}"
|
||||
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}"
|
||||
}
|
||||
function advanced_settings() {
|
||||
|
@ -105,7 +107,7 @@ function advanced_settings() {
|
|||
if [ $exitstatus = 0 ]; then
|
||||
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
|
||||
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=$?
|
||||
if [ $exitstatus = 0 ]; then
|
||||
if [ -z $PW1 ]; then
|
||||
|
@ -212,6 +214,13 @@ function advanced_settings() {
|
|||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
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
|
||||
echo -e "${RD}Creating a ${APP} LXC using the above advanced settings${CL}"
|
||||
else
|
||||
|
@ -241,6 +250,7 @@ else
|
|||
fi
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
pushd $TEMP_DIR >/dev/null
|
||||
export SSH_ROOT=${SSH}
|
||||
export CTID=$CT_ID
|
||||
export PCT_OSTYPE=$var_os
|
||||
export PCT_OSVERSION=$var_version
|
||||
|
|
|
@ -106,6 +106,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -362,6 +362,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -115,6 +115,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -108,6 +108,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -139,6 +139,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -132,6 +132,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -158,6 +158,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -121,6 +121,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -106,6 +106,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -128,6 +128,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -115,6 +115,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
systemctl start grafana-server
|
||||
systemctl enable grafana-server.service &>/dev/null
|
||||
|
||||
|
|
|
@ -144,6 +144,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -139,6 +139,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -146,6 +146,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -342,6 +342,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -118,6 +118,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -136,6 +136,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -139,6 +139,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -106,6 +106,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -146,6 +146,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -127,6 +127,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -223,6 +223,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -123,6 +123,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -117,6 +117,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -136,6 +136,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -113,6 +113,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -129,6 +129,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -155,6 +155,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -104,6 +104,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -261,6 +261,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Starting Services"
|
||||
systemctl enable npm &>/dev/null
|
||||
|
|
|
@ -135,6 +135,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -137,6 +137,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -111,6 +111,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -123,6 +123,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -123,6 +123,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -196,6 +196,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -126,6 +126,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -125,6 +125,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -159,6 +159,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -230,6 +230,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -135,6 +135,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
|
@ -194,6 +194,12 @@ EOF
|
|||
systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//')
|
||||
msg_ok "Customized Container"
|
||||
fi
|
||||
if [[ "${SSH_ROOT}" == "yes" ]]; then
|
||||
cat <<EOF >>/etc/ssh/sshd_config
|
||||
PermitRootLogin yes
|
||||
EOF
|
||||
systemctl restart sshd
|
||||
fi
|
||||
|
||||
msg_info "Cleaning up"
|
||||
apt-get autoremove >/dev/null
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue