Compare commits

..

No commits in common. "b18a844c9835b6682ba5cf1e786bc427a410e7aa" and "f7b56041b359ff6b7e5f252b253904c252431f7f" have entirely different histories.

3 changed files with 9 additions and 9 deletions

View File

@ -23,7 +23,7 @@ var_disk="3"
var_cpu="2" var_cpu="2"
var_ram="1024" var_ram="1024"
var_os="debian" var_os="debian"
var_version="12" var_version="11"
variables variables
color color
catch_errors catch_errors

View File

@ -20,12 +20,11 @@ $STD apt-get install -y mc
$STD apt-get install -y git $STD apt-get install -y git
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
$STD bash <(curl -fsSL https://deb.nodesource.com/setup_18.x)
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js" msg_info "Installing Node.js"
$STD apt-get install -y nodejs git make g++ gcc $STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh)
. ~/.bashrc
$STD nvm install 16.20.1
ln -sf /root/.nvm/versions/node/v16.20.1/bin/node /usr/bin/node
$STD npm install -g pnpm $STD npm install -g pnpm
msg_ok "Installed Node.js" msg_ok "Installed Node.js"

View File

@ -54,9 +54,6 @@ msg_error() {
# This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported. # This function checks the version of Proxmox Virtual Environment (PVE) and exits if the version is not supported.
pve_check() { pve_check() {
if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then
whiptail --msgbox --title "Proxmox VE 7 Detected" "You are currently using Proxmox VE 7, refrain from creating Debian 12 LXCs due to differences in locale parameters. \n Default distribution for $APP LXC is ${var_os} ${var_version}" 10 58
fi
if ! pveversion | grep -Eq "pve-manager/(7\.[0-9]|8\.[0-9])"; then if ! pveversion | grep -Eq "pve-manager/(7\.[0-9]|8\.[0-9])"; then
echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported" echo -e "${CROSS} This version of Proxmox Virtual Environment is not supported"
echo -e "Requires PVE Version 7.0 or higher" echo -e "Requires PVE Version 7.0 or higher"
@ -440,6 +437,10 @@ install_script() {
} }
start() { start() {
if [ $(pveversion | grep "pve-manager/8" | wc -l) -ne 1 ]; then
whiptail --msgbox --title "Proxmox VE 7 Detected" "You are currently using Proxmox VE 7, refrain from creating Debian 12 LXCs due to differences in locale parameters. \n Default distribution for $APP LXC is ${var_os} ${var_version}" 10 58
fi
if command -v pveversion >/dev/null 2>&1; then if command -v pveversion >/dev/null 2>&1; then
if ! (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then if ! (whiptail --title "${APP} LXC" --yesno "This will create a New ${APP} LXC. Proceed?" 10 58); then
clear clear