mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-16 15:51:12 +02:00
Merge branch 'main' of https://github.com/community-scripts/ProxmoxVE
This commit is contained in:
@@ -512,14 +512,20 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
- #### ✨ New Features
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- n8n: unpin / use latest release [@MickLesk](https://github.com/MickLesk) ([#15817](https://github.com/community-scripts/ProxmoxVE/pull/15817))
|
||||||
- Pin Opencloud to v7.3.0 [@vhsdream](https://github.com/vhsdream) ([#15826](https://github.com/community-scripts/ProxmoxVE/pull/15826))
|
- Pin Opencloud to v7.3.0 [@vhsdream](https://github.com/vhsdream) ([#15826](https://github.com/community-scripts/ProxmoxVE/pull/15826))
|
||||||
|
|
||||||
### 💾 Core
|
### 💾 Core
|
||||||
|
|
||||||
- #### ✨ New Features
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- tools.func: enhance rbenv with profile updates / bundle in bashrc [@MickLesk](https://github.com/MickLesk) ([#15822](https://github.com/community-scripts/ProxmoxVE/pull/15822))
|
||||||
- feat(build.func): notify users when already on a pinned script version [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#15819](https://github.com/community-scripts/ProxmoxVE/pull/15819))
|
- feat(build.func): notify users when already on a pinned script version [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#15819](https://github.com/community-scripts/ProxmoxVE/pull/15819))
|
||||||
|
|
||||||
|
- #### 💥 Breaking Changes
|
||||||
|
|
||||||
|
- MongoDB: Implement kernel version check and patch [@MickLesk](https://github.com/MickLesk) ([#15821](https://github.com/community-scripts/ProxmoxVE/pull/15821))
|
||||||
|
|
||||||
### 🧰 Tools
|
### 🧰 Tools
|
||||||
|
|
||||||
- #### ✨ New Features
|
- #### ✨ New Features
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ EOF
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$STD npm install -g n8n@2.27.5
|
$STD npm install -g n8n@latest
|
||||||
systemctl restart n8n
|
systemctl restart n8n
|
||||||
msg_ok "Updated n8n"
|
msg_ok "Updated n8n"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ update_os
|
|||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt install -y \
|
$STD apt install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
python3 \
|
|
||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
graphicsmagick
|
graphicsmagick
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
@@ -24,7 +23,7 @@ msg_ok "Installed Dependencies"
|
|||||||
NODE_VERSION="24" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
|
|
||||||
msg_info "Installing n8n (Patience)"
|
msg_info "Installing n8n (Patience)"
|
||||||
$STD npm install -g n8n@2.27.5
|
$STD npm install -g n8n@latest
|
||||||
msg_ok "Installed n8n"
|
msg_ok "Installed n8n"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|||||||
@@ -7431,6 +7431,18 @@ setup_mongodb() {
|
|||||||
mkdir -p /var/lib/mongodb
|
mkdir -p /var/lib/mongodb
|
||||||
chown -R mongodb:mongodb /var/lib/mongodb
|
chown -R mongodb:mongodb /var/lib/mongodb
|
||||||
|
|
||||||
|
local KERNEL_VERSION MONGO_MAJOR
|
||||||
|
KERNEL_VERSION=$(uname -r | cut -d- -f1)
|
||||||
|
MONGO_MAJOR="${MONGO_VERSION%%.*}"
|
||||||
|
if ((MONGO_MAJOR >= 8)) && [[ "$(printf '%s\n' "6.19" "$KERNEL_VERSION" | sort -V | head -n1)" == "6.19" ]]; then
|
||||||
|
mkdir -p /etc/systemd/system/mongod.service.d
|
||||||
|
cat <<EOF >/etc/systemd/system/mongod.service.d/rseq.conf
|
||||||
|
[Service]
|
||||||
|
Environment=GLIBC_TUNABLES=glibc.pthread.rseq=1
|
||||||
|
EOF
|
||||||
|
systemctl daemon-reload
|
||||||
|
fi
|
||||||
|
|
||||||
$STD systemctl enable mongod || {
|
$STD systemctl enable mongod || {
|
||||||
msg_warn "Failed to enable mongod service"
|
msg_warn "Failed to enable mongod service"
|
||||||
}
|
}
|
||||||
@@ -8677,6 +8689,7 @@ setup_postgresql_db() {
|
|||||||
export PG_DB_USER
|
export PG_DB_USER
|
||||||
export PG_DB_PASS
|
export PG_DB_PASS
|
||||||
}
|
}
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Installs rbenv and ruby-build, installs Ruby and optionally Rails.
|
# Installs rbenv and ruby-build, installs Ruby and optionally Rails.
|
||||||
#
|
#
|
||||||
@@ -8696,8 +8709,26 @@ setup_ruby() {
|
|||||||
local RBENV_DIR="$HOME/.rbenv"
|
local RBENV_DIR="$HOME/.rbenv"
|
||||||
local RBENV_BIN="$RBENV_DIR/bin/rbenv"
|
local RBENV_BIN="$RBENV_DIR/bin/rbenv"
|
||||||
local PROFILE_FILE="$HOME/.profile"
|
local PROFILE_FILE="$HOME/.profile"
|
||||||
|
local BASH_PROFILE_FILE="$HOME/.bash_profile"
|
||||||
|
local BASHRC_FILE="$HOME/.bashrc"
|
||||||
local TMP_DIR=$(mktemp -d)
|
local TMP_DIR=$(mktemp -d)
|
||||||
|
|
||||||
|
if ! grep -q 'rbenv init' "$PROFILE_FILE" 2>/dev/null; then
|
||||||
|
cat <<'EOF' >>"$PROFILE_FILE"
|
||||||
|
export PATH="$HOME/.rbenv/bin:$PATH"
|
||||||
|
eval "$(rbenv init -)"
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
if ! grep -q '.rbenv/shims' "$PROFILE_FILE" 2>/dev/null; then
|
||||||
|
echo 'export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"' >>"$PROFILE_FILE"
|
||||||
|
fi
|
||||||
|
if [[ -f "$BASH_PROFILE_FILE" ]] && ! grep -q '.rbenv/shims' "$BASH_PROFILE_FILE"; then
|
||||||
|
echo 'export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"' >>"$BASH_PROFILE_FILE"
|
||||||
|
fi
|
||||||
|
if [[ -f "$BASHRC_FILE" ]] && ! grep -q '.rbenv/shims' "$BASHRC_FILE"; then
|
||||||
|
echo 'export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"' >>"$BASHRC_FILE"
|
||||||
|
fi
|
||||||
|
|
||||||
# Get currently installed Ruby version
|
# Get currently installed Ruby version
|
||||||
local CURRENT_RUBY_VERSION=""
|
local CURRENT_RUBY_VERSION=""
|
||||||
if [[ -x "$RBENV_BIN" ]]; then
|
if [[ -x "$RBENV_BIN" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user