mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 16:32:17 +00:00
remove locals
This commit is contained in:
committed by
GitHub
parent
a7a3514f92
commit
a2a98cf26d
@@ -127,21 +127,18 @@ function update() {
|
|||||||
# INSTALL
|
# INSTALL
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
function install() {
|
function install() {
|
||||||
local NODE_VER="22"
|
|
||||||
local PG_VER="17"
|
|
||||||
|
|
||||||
# Setup Node.js (only installs if not present or different version)
|
# Setup Node.js (only installs if not present or different version)
|
||||||
if command -v node &>/dev/null; then
|
if command -v node &>/dev/null; then
|
||||||
msg_ok "Node.js already installed ($(node -v))"
|
msg_ok "Node.js already installed ($(node -v))"
|
||||||
else
|
else
|
||||||
NODE_VERSION="${NODE_VER}" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup PostgreSQL (only installs if not present)
|
# Setup PostgreSQL (only installs if not present)
|
||||||
if command -v psql &>/dev/null; then
|
if command -v psql &>/dev/null; then
|
||||||
msg_ok "PostgreSQL already installed"
|
msg_ok "PostgreSQL already installed"
|
||||||
else
|
else
|
||||||
PG_VERSION="${PG_VER}" setup_postgresql
|
PG_VERSION="17" setup_postgresql
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create database and user (skip if already exists)
|
# Create database and user (skip if already exists)
|
||||||
@@ -354,13 +351,11 @@ if [[ -d "$INSTALL_PATH" && -f "$INSTALL_PATH/package.json" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Fresh installation
|
# Fresh installation
|
||||||
local NODE_VER="22"
|
|
||||||
local PG_VER="17"
|
|
||||||
msg_warn "${APP} is not installed."
|
msg_warn "${APP} is not installed."
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${TAB}${INFO} This will install:"
|
echo -e "${TAB}${INFO} This will install:"
|
||||||
echo -e "${TAB} - Node.js ${NODE_VER}"
|
echo -e "${TAB} - Node.js 22"
|
||||||
echo -e "${TAB} - PostgreSQL ${PG_VER}"
|
echo -e "${TAB} - PostgreSQL 17"
|
||||||
echo -e "${TAB} - Jellystat"
|
echo -e "${TAB} - Jellystat"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user