Compare commits

..

No commits in common. "d8809c9e801a57afa017be8fb0c6dc9e784247fb" and "4744ccb562d2bc17450567176b8d590370ed72f9" have entirely different histories.

3 changed files with 19 additions and 56 deletions

View File

@ -2,13 +2,6 @@
# Change Log # Change Log
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## 2023-04-23
### Changed
- **Non-Alpine LXC's**
- Advanced settings provide the option for users to switch between Debian and Ubuntu distributions. However, some applications or services, such as Deconz or Omada, may not be compatible with the selected distribution due to dependencies.
## 2023-04-16 ## 2023-04-16
### Changed ### Changed

View File

@ -23,7 +23,7 @@ var_disk="8"
var_cpu="2" var_cpu="2"
var_ram="2048" var_ram="2048"
var_os="ubuntu" var_os="ubuntu"
var_version="22.04" var_version="20.04"
variables variables
color color
catch_errors catch_errors

View File

@ -79,8 +79,9 @@ ssh_check() {
} }
echo_default() { echo_default() {
echo -e "${DGN}Using Distribution: ${BGN}$var_os${CL}" if [ "$var_os" == "ubuntu" ]; then
echo -e "${DGN}Using $var_os Version: ${BGN}$var_version${CL}" echo -e "${DGN}Using ${var_os} Version: ${BGN}${var_version}${CL}"
fi
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}" echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
echo -e "${DGN}Using Root Password: ${BGN}Automatic Login${CL}" echo -e "${DGN}Using Root Password: ${BGN}Automatic Login${CL}"
echo -e "${DGN}Using Container ID: ${BGN}$NEXTID${CL}" echo -e "${DGN}Using Container ID: ${BGN}$NEXTID${CL}"
@ -112,57 +113,26 @@ exit-script() {
} }
advanced_settings() { advanced_settings() {
if [ "$var_os" != "alpine" ]; then
var_os=""
while [ -z "$var_os" ]; do
if var_os=$(whiptail --title "DISTRIBUTION" --radiolist "Choose" 10 58 2 \
"debian" "" OFF \
"ubuntu" "" OFF \
3>&1 1>&2 2>&3); then
if [ -n "$var_os" ]; then
echo -e "${DGN}Using Distribution: ${BGN}$var_os${CL}"
fi
else
exit-script
fi
done
fi
if [ "$var_os" == "debian" ]; then
var_version="11"
echo -e "${DGN}Using $var_os Version: ${BGN}$var_version${CL}"
fi
if [ "$var_os" == "ubuntu" ]; then if [ "$var_os" == "ubuntu" ]; then
var_version="" if var_version=$(whiptail --title "UBUNTU VERSION" --radiolist "Choose Version" 10 58 3 \
while [ -z "$var_version" ]; do "20.04" "Focal" ON \
if var_version=$(whiptail --title "UBUNTU VERSION" --radiolist "Choose Version" 10 58 3 \ "22.04" "Jammy" OFF \
"20.04" "Focal" OFF \ "22.10" "Kinetic" OFF \
"22.04" "Jammy" OFF \
"22.10" "Kinetic" OFF \
3>&1 1>&2 2>&3); then
if [ -n "$var_version" ]; then
echo -e "${DGN}Using $var_os Version: ${BGN}$var_version${CL}"
fi
else
exit-script
fi
done
fi
CT_TYPE=""
while [ -z "$CT_TYPE" ]; do
if CT_TYPE=$(whiptail --title "CONTAINER TYPE" --radiolist "Choose Type" 10 58 2 \
"1" "Unprivileged" OFF \
"0" "Privileged" OFF \
3>&1 1>&2 2>&3); then 3>&1 1>&2 2>&3); then
if [ -n "$CT_TYPE" ]; then echo -e "${DGN}Using Ubuntu Version: ${BGN}$var_version${CL}"
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
fi
else else
exit-script exit-script
fi fi
done fi
if CT_TYPE=$(whiptail --title "CONTAINER TYPE" --radiolist "Choose Type" 10 58 2 \
"1" "Unprivileged" ON \
"0" "Privileged" OFF \
3>&1 1>&2 2>&3); then
echo -e "${DGN}Using Container Type: ${BGN}$CT_TYPE${CL}"
else
exit-script
fi
if PW1=$(whiptail --inputbox "\nSet Root Password (needed for root ssh access)" 9 58 --title "PASSWORD(leave blank for automatic login)" 3>&1 1>&2 2>&3); then if PW1=$(whiptail --inputbox "\nSet Root Password (needed for root ssh access)" 9 58 --title "PASSWORD(leave blank for automatic login)" 3>&1 1>&2 2>&3); then
if [ -z $PW1 ]; then if [ -z $PW1 ]; then