Compare commits

..

39 Commits

Author SHA1 Message Date
community-scripts-pr-app[bot]
c8a107e730 Update CHANGELOG.md (#6329)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 21:22:11 +00:00
Slaviša Arežina
404b9feef2 Refactor (#6314) 2025-07-28 23:21:47 +02:00
community-scripts-pr-app[bot]
cc6f56fec8 Update CHANGELOG.md (#6327)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 20:14:52 +00:00
Slaviša Arežina
89ab0f162c Refactor: grocy (#6307) 2025-07-28 22:14:32 +02:00
community-scripts-pr-app[bot]
8846915506 Update CHANGELOG.md (#6323)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 18:33:11 +00:00
Bram Suurd
ecc585ebef temp change the analytics url to one that works untill community one is fixed (#6319) 2025-07-28 20:32:48 +02:00
community-scripts-pr-app[bot]
72dcd61244 Update CHANGELOG.md (#6318)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 17:45:12 +00:00
九条涼果
0955ec4b7f fix: SSH authorized keys not added in Alpine install script (#6316) 2025-07-28 19:44:52 +02:00
community-scripts-pr-app[bot]
4fb5ea4ec2 Update CHANGELOG.md (#6317)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 16:50:54 +00:00
Slaviša Arežina
7051dfeea7 Refactor: HiveMQ (#6313) 2025-07-28 18:50:33 +02:00
community-scripts-pr-app[bot]
253c4f4f5b Update CHANGELOG.md (#6315)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 13:56:49 +00:00
Slaviša Arežina
69e947246a Refactor: Gotify (#6301)
* Refactor Gotify

* Add tools.func fix

* Update gotify.sh
2025-07-28 15:56:22 +02:00
community-scripts-pr-app[bot]
1f1bc5f12d Update CHANGELOG.md (#6312)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 13:12:13 +00:00
teohz
15e3958687 fix: removing ",gw=" from GATE variable when reading/writing from/to config. (#6177)
Previously when creating a config, GATE variable would incluse ",gw="
which was crashing the installer script when read later on.
This fix:
1. writes GATE variable to config without ",gw="
2. removes ",gw=" from GATE variable when reading existing config

Co-authored-by: teohz <git@teohz.com>
2025-07-28 15:11:52 +02:00
community-scripts-pr-app[bot]
7b82199a36 Update CHANGELOG.md (#6311)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 12:58:26 +00:00
community-scripts-pr-app[bot]
01631c305a Update CHANGELOG.md (#6310)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 12:58:08 +00:00
Slaviša Arežina
bc36a60a49 Refactor (#6306) 2025-07-28 14:58:03 +02:00
Slaviša Arežina
d4c59caf12 Refactor (#6305) 2025-07-28 14:57:44 +02:00
community-scripts-pr-app[bot]
bd9c778922 Update CHANGELOG.md (#6309)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 12:57:16 +00:00
Slaviša Arežina
63d65420a9 Refactor Navidrome (#6300) 2025-07-28 14:56:54 +02:00
community-scripts-pr-app[bot]
08e451f8de Update versions.json (#6308)
Co-authored-by: GitHub Actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 14:05:35 +02:00
community-scripts-pr-app[bot]
b602a9d50c Update CHANGELOG.md (#6303)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 11:34:19 +00:00
Tobias
759239bc7c n8n: refactor environmentfile (#6297)
* n8n: add config path

* n8n: refactor servicefile to seperate env

* n8n: refactor envfile

* Update n8n.sh

* Update n8n.json

---------

Co-authored-by: Slaviša Arežina <58952836+tremor021@users.noreply.github.com>
2025-07-28 13:33:51 +02:00
community-scripts-pr-app[bot]
9c50105e86 Update CHANGELOG.md (#6299)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 09:36:36 +00:00
CanbiZ
7bf69cbd07 [core]: create_lxc: better handling, fix lock handling, improve template validation & storage selection UX (#6296)
* Update create_lxc.sh

* Update create_lxc.sh

* Update create_lxc.sh
2025-07-28 11:36:14 +02:00
community-scripts-pr-app[bot]
48c63aaebb Update CHANGELOG.md (#6298)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 09:00:33 +00:00
CanbiZ
ba70f9867b ProxmoxVE 9.0 Beta: add BETA Version as test in pve_check (#6295) 2025-07-28 11:00:09 +02:00
community-scripts-pr-app[bot]
c4ab8f92d5 Update CHANGELOG.md (#6294)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 08:16:52 +00:00
Sai Vishnu M
9fd1a868cb add 'g++' to actualbudget-install.sh (#6293)
* add 'g++' to actualbudget-install.sh

The install script fails on line 53 (`$STD npm install --location=global @actual-app/sync-server`). 
Installing `gcc`, which is required by `better-sqlite3`, which `@actual-app/sync-server` depends on, is the solution. 

Added `g++` to the dependency line `18`.

* formatting

---------

Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
2025-07-28 10:16:31 +02:00
community-scripts-pr-app[bot]
a5d540648e Update CHANGELOG.md (#6292)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 05:29:24 +00:00
Chris
3676dff24e karakeep: Run workers in prod without tsx (#6285)
- may improve performance on slow-ass devices
- slightly increases build time
2025-07-28 07:29:00 +02:00
community-scripts-pr-app[bot]
b80ad6655f Update CHANGELOG.md (#6289)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 00:15:04 +00:00
community-scripts-pr-app[bot]
1eb0099f2a Update versions.json (#6288)
Co-authored-by: GitHub Actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-28 02:14:40 +02:00
community-scripts-pr-app[bot]
759f3f8c79 Update CHANGELOG.md (#6284)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-27 19:57:44 +00:00
Chris
33f6d698c7 karakeep: export DATA_DIR from user config in update (#6283) 2025-07-27 21:57:22 +02:00
community-scripts-pr-app[bot]
7b4bab66af Update CHANGELOG.md (#6281)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-27 17:15:55 +00:00
Slaviša Arežina
5322ae69c3 Update go2rtc-install.sh (#6280) 2025-07-27 19:15:36 +02:00
community-scripts-pr-app[bot]
27426ded94 Update versions.json (#6276)
Co-authored-by: GitHub Actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-07-27 14:05:21 +02:00
Michel Roegl-Brunner
1e035c5c85 Delete frontend/public/json/opnsense-vm.json (#6266) 2025-07-27 11:34:35 +02:00
48 changed files with 888 additions and 525 deletions

View File

@@ -10,8 +10,49 @@
> [!CAUTION] > [!CAUTION]
Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit the project's popularity for potentially malicious purposes. Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit the project's popularity for potentially malicious purposes.
## 2025-07-28
### 🚀 Updated Scripts
- Refactor: Cronicle [@tremor021](https://github.com/tremor021) ([#6314](https://github.com/community-scripts/ProxmoxVE/pull/6314))
- Refactor: HiveMQ [@tremor021](https://github.com/tremor021) ([#6313](https://github.com/community-scripts/ProxmoxVE/pull/6313))
- #### 🐞 Bug Fixes
- fix: SSH authorized keys not added in Alpine install script [@enihsyou](https://github.com/enihsyou) ([#6316](https://github.com/community-scripts/ProxmoxVE/pull/6316))
- fix: removing ",gw=" from GATE var when reading/writing from/to config. [@teohz](https://github.com/teohz) ([#6177](https://github.com/community-scripts/ProxmoxVE/pull/6177))
- add 'g++' to actualbudget-install.sh [@saivishnu725](https://github.com/saivishnu725) ([#6293](https://github.com/community-scripts/ProxmoxVE/pull/6293))
- #### ✨ New Features
- [core]: create_lxc: better handling, fix lock handling, improve template validation & storage selection UX [@MickLesk](https://github.com/MickLesk) ([#6296](https://github.com/community-scripts/ProxmoxVE/pull/6296))
- ProxmoxVE 9.0 Beta: add BETA Version as test in pve_check [@MickLesk](https://github.com/MickLesk) ([#6295](https://github.com/community-scripts/ProxmoxVE/pull/6295))
- karakeep: Run workers in prod without tsx [@vhsdream](https://github.com/vhsdream) ([#6285](https://github.com/community-scripts/ProxmoxVE/pull/6285))
- #### 🔧 Refactor
- Refactor: grocy [@tremor021](https://github.com/tremor021) ([#6307](https://github.com/community-scripts/ProxmoxVE/pull/6307))
- Refactor: Navidrome [@tremor021](https://github.com/tremor021) ([#6300](https://github.com/community-scripts/ProxmoxVE/pull/6300))
- Refactor: Gotify [@tremor021](https://github.com/tremor021) ([#6301](https://github.com/community-scripts/ProxmoxVE/pull/6301))
- Refactor: Grafana [@tremor021](https://github.com/tremor021) ([#6306](https://github.com/community-scripts/ProxmoxVE/pull/6306))
- Refactor: Argus [@tremor021](https://github.com/tremor021) ([#6305](https://github.com/community-scripts/ProxmoxVE/pull/6305))
- n8n: refactor environmentfile [@CrazyWolf13](https://github.com/CrazyWolf13) ([#6297](https://github.com/community-scripts/ProxmoxVE/pull/6297))
### 🌐 Website
- #### 🐞 Bug Fixes
- temp change the analytics url to one that works untill community one is fixed [@BramSuurdje](https://github.com/BramSuurdje) ([#6319](https://github.com/community-scripts/ProxmoxVE/pull/6319))
## 2025-07-27 ## 2025-07-27
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- karakeep: export DATA_DIR from user config in update [@vhsdream](https://github.com/vhsdream) ([#6283](https://github.com/community-scripts/ProxmoxVE/pull/6283))
- go2rtc: Fix release download handling [@tremor021](https://github.com/tremor021) ([#6280](https://github.com/community-scripts/ProxmoxVE/pull/6280))
## 2025-07-26 ## 2025-07-26
### 🚀 Updated Scripts ### 🚀 Updated Scripts

View File

@@ -23,20 +23,23 @@ function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /opt/argus ]]; then if [[ ! -d /opt/argus ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
RELEASE=$(curl -fsSL https://api.github.com/repos/release-argus/Argus/releases/latest | jq -r .tag_name | sed 's/^v//') RELEASE=$(curl -fsSL https://api.github.com/repos/release-argus/Argus/releases/latest | jq -r .tag_name | sed 's/^v//')
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then if [[ "${RELEASE}" != "$(cat ~/.Argus 2>/dev/null)" ]] || [[ ! -f ~/.Argus ]]; then
msg_info "Updating $APP to ${RELEASE}" msg_info "Stopping service"
rm -f /opt/argus/Argus systemctl stop argus
curl -fsSL "https://github.com/release-argus/Argus/releases/download/${RELEASE}/Argus-${RELEASE}.linux-amd64" -o /opt/argus/Argus msg_ok "Service stopped"
chmod +x /opt/argus/Argus
systemctl restart argus fetch_and_deploy_gh_release "Argus" "release-argus/Argus" "singlefile" "latest" "/opt/argus" "Argus*linux-amd64"
echo "${RELEASE}" >/opt/${APP}_version.txt
msg_info "Starting service"
systemctl start argus
msg_ok "Service started"
msg_ok "Updated ${APP} to ${RELEASE}" msg_ok "Updated ${APP} to ${RELEASE}"
else else
msg_ok "${APP} is already up to date (${RELEASE})" msg_ok "${APP} is already up to date (${RELEASE})"

View File

@@ -56,30 +56,18 @@ function update_script() {
LATEST=$(curl -fsSL https://api.github.com/repos/jhuckaby/Cronicle/releases/latest | grep '"tag_name":' | cut -d'"' -f4) LATEST=$(curl -fsSL https://api.github.com/repos/jhuckaby/Cronicle/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \
$STD apt-get install -y git git \
$STD apt-get install -y make build-essential \
$STD apt-get install -y g++ ca-certificates \
$STD apt-get install -y gcc gnupg2
$STD apt-get install -y ca-certificates
$STD apt-get install -y gnupg
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository" NODE_VERSION="22" setup_nodejs
mkdir -p /etc/apt/keyrings fetch_and_deploy_gh_release "cronicle" "jhuckaby/Cronicle"
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js" msg_info "Configuring Cronicle Worker"
$STD apt-get update
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
msg_info "Installing Cronicle Worker"
mkdir -p /opt/cronicle
cd /opt/cronicle cd /opt/cronicle
$STD tar zxvf <(curl -fsSL https://github.com/jhuckaby/Cronicle/archive/${LATEST}.tar.gz) --strip-components 1
$STD npm install $STD npm install
$STD node bin/build.js dist $STD node bin/build.js dist
sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json
@@ -88,6 +76,7 @@ function update_script() {
chmod 775 /etc/init.d/cronicled chmod 775 /etc/init.d/cronicled
$STD update-rc.d cronicled defaults $STD update-rc.d cronicled defaults
msg_ok "Installed Cronicle Worker" msg_ok "Installed Cronicle Worker"
echo -e "\n Add Masters secret key to /opt/cronicle/conf/config.json \n" echo -e "\n Add Masters secret key to /opt/cronicle/conf/config.json \n"
exit exit
fi fi

View File

@@ -29,23 +29,18 @@ function update_script() {
fi fi
RELEASE=$(curl -fsSL https://api.github.com/repos/gotify/server/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') RELEASE=$(curl -fsSL https://api.github.com/repos/gotify/server/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then if [[ "${RELEASE}" != "$(cat ~/.gotify 2>/dev/null)" ]] || [[ ! -f ~/.gotify ]]; then
msg_info "Stopping ${APP}" msg_info "Stopping ${APP}"
systemctl stop gotify systemctl stop gotify
msg_ok "Stopped ${APP}" msg_ok "Stopped ${APP}"
msg_info "Updating ${APP} to ${RELEASE}" fetch_and_deploy_gh_release "gotify" "gotify/server" "prebuild" "latest" "/opt/gotify" "gotify-linux-amd64.zip"
cd /opt/gotify chmod +x /opt/gotify/gotify-linux-amd64
curl -fsSL "https://github.com/gotify/server/releases/download/v${RELEASE}/gotify-linux-amd64.zip" -o $(basename "https://github.com/gotify/server/releases/download/v${RELEASE}/gotify-linux-amd64.zip")
$STD unzip -o gotify-linux-amd64.zip
rm -rf gotify-linux-amd64.zip
chmod +x gotify-linux-amd64
echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated ${APP} to ${RELEASE}"
msg_info "Starting ${APP}" msg_info "Starting ${APP}"
systemctl start gotify systemctl start gotify
msg_ok "Started ${APP}" msg_ok "Started ${APP}"
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
else else
msg_ok "No update required. ${APP} is already at ${RELEASE}" msg_ok "No update required. ${APP} is already at ${RELEASE}"

View File

@@ -27,6 +27,7 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_info "Updating ${APP}" msg_info "Updating ${APP}"
$STD apt-get update $STD apt-get update
$STD apt-get -y upgrade $STD apt-get -y upgrade
@@ -41,4 +42,4 @@ description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

View File

@@ -27,20 +27,20 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
php_version=$(php -v | head -n 1 | awk '{print $2}')
if [[ ! $php_version == "8.3"* ]]; then php_ver=$(php -v | head -n 1 | awk '{print $2}')
msg_info "Updating PHP" if [[ ! $php_ver == "8.3"* ]]; then
curl -fsSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg PHP_VERSION="8.3" PHP_MODULE="sqlite3,bz2" PHP_APACHE="yes" setup_php
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ bookworm main" >/etc/apt/sources.list.d/php.list fi
apt-get update
apt-get install -y php8.3 php8.3-cli php8.3-{bz2,curl,mbstring,intl,sqlite3,fpm,gd,zip,xml} RELEASE=$(curl -fsSL https://api.github.com/repos/grocy/grocy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
systemctl reload apache2 if [[ "${RELEASE}" != "$(cat ~/.grocy 2>/dev/null)" ]] || [[ ! -f ~/.grocy ]]; then
apt autoremove msg_info "Updating ${APP}"
msg_ok "Updated PHP" bash /var/www/html/update.sh
msg_ok "Updated Successfully"
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi fi
msg_info "Updating ${APP}"
bash /var/www/html/update.sh
msg_ok "Updated Successfully"
exit exit
} }

View File

@@ -52,6 +52,10 @@ function update_script() {
rm -rf /opt/karakeep rm -rf /opt/karakeep
msg_ok "Update prepared" msg_ok "Update prepared"
if grep -q "start:prod" /etc/systemd/system/karakeep-workers.service; then
sed -i 's|^ExecStart=.*$|ExecStart=/usr/bin/node dist/index.mjs|' /etc/systemd/system/karakeep-workers.service
systemctl daemon-reload
fi
fetch_and_deploy_gh_release "karakeep" "karakeep-app/karakeep" fetch_and_deploy_gh_release "karakeep" "karakeep-app/karakeep"
if command -v corepack >/dev/null; then if command -v corepack >/dev/null; then
$STD corepack disable $STD corepack disable
@@ -60,6 +64,7 @@ function update_script() {
NODE_VERSION="22" NODE_MODULE="pnpm@${MODULE_VERSION}" setup_nodejs NODE_VERSION="22" NODE_MODULE="pnpm@${MODULE_VERSION}" setup_nodejs
msg_info "Updating ${APP} to v${RELEASE}" msg_info "Updating ${APP} to v${RELEASE}"
corepack enable
export PUPPETEER_SKIP_DOWNLOAD="true" export PUPPETEER_SKIP_DOWNLOAD="true"
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD="true" export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD="true"
export NEXT_TELEMETRY_DISABLED=1 export NEXT_TELEMETRY_DISABLED=1
@@ -69,10 +74,12 @@ function update_script() {
$STD pnpm build $STD pnpm build
cd /opt/karakeep/apps/workers cd /opt/karakeep/apps/workers
$STD pnpm install --frozen-lockfile $STD pnpm install --frozen-lockfile
$STD pnpm build
cd /opt/karakeep/apps/cli cd /opt/karakeep/apps/cli
$STD pnpm install --frozen-lockfile $STD pnpm install --frozen-lockfile
$STD pnpm build $STD pnpm build
export DATA_DIR=/opt/karakeep_data DATA_DIR="$(sed -n '/^DATA_DIR/p' /etc/karakeep/karakeep.env | awk -F= '{print $2}')"
export DATA_DIR="${DATA_DIR:-/opt/karakeep_data}"
cd /opt/karakeep/packages/db cd /opt/karakeep/packages/db
$STD pnpm migrate $STD pnpm migrate
$STD pnpm store prune $STD pnpm store prune

View File

@@ -34,6 +34,18 @@ function update_script() {
echo "Installed NPM..." echo "Installed NPM..."
fi fi
fi fi
if [ ! -f /opt/n8n.env ]; then
sed -i 's|^Environment="N8N_SECURE_COOKIE=false"$|EnvironmentFile="/opt/n8n.env"|' /etc/systemd/system/n8n.service
HOST_IP=$(hostname -I | awk '{print $1}')
mkdir -p /opt
cat <<EOF >/opt/n8n.env
N8N_SECURE_COOKIE=false
N8N_PORT=5678
N8N_PROTOCOL=http
N8N_HOST=$HOST_IP
EOF
fi
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
$STD npm update -g n8n $STD npm update -g n8n
systemctl restart n8n systemctl restart n8n
@@ -48,4 +60,4 @@ description
msg_ok "Completed Successfully!\n" msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5678${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:5678${CL}"

View File

@@ -27,27 +27,19 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
RELEASE=$(curl -fsSL https://api.github.com/repos/navidrome/navidrome/releases/latest | grep "tag_name" | awk -F '"' '{print $4}')
if [[ ! -f /opt/${APP}_version.txt ]]; then touch /opt/${APP}_version.txt; fi RELEASE=$(curl -fsSL https://api.github.com/repos/navidrome/navidrome/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then if [[ "${RELEASE}" != "$(cat ~/.navidrome 2>/dev/null)" ]] || [[ ! -f ~/.navidrome ]]; then
msg_info "Stopping Services" msg_info "Stopping Services"
systemctl stop navidrome systemctl stop navidrome
msg_ok "Services Stopped" msg_ok "Services Stopped"
msg_info "Updating ${APP} to ${RELEASE}" fetch_and_deploy_gh_release "navidrome" "navidrome/navidrome" "binary"
TMP_DEB=$(mktemp --suffix=.deb)
curl -fsSL -o "${TMP_DEB}" "https://github.com/navidrome/navidrome/releases/download/${RELEASE}/navidrome_${RELEASE#v}_linux_amd64.deb"
$STD apt-get install -y "${TMP_DEB}"
echo "${RELEASE}" >/opt/"${APP}_version.txt"
msg_ok "Updated Navidrome"
msg_info "Starting Services" msg_info "Starting Services"
systemctl start navidrome systemctl start navidrome
msg_ok "Started Services" msg_ok "Started Services"
msg_info "Cleaning Up"
rm -f "${TMP_DEB}"
msg_ok "Cleaned"
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
else else
msg_ok "No update required. ${APP} is already at ${RELEASE}" msg_ok "No update required. ${APP} is already at ${RELEASE}"

View File

@@ -9,7 +9,7 @@
"updateable": true, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": 3012, "interface_port": 3012,
"documentation": null, "documentation": "https://github.com/jhuckaby/Cronicle/blob/master/README.md",
"website": "https://github.com/jhuckaby/Cronicle", "website": "https://github.com/jhuckaby/Cronicle",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/chronicle.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/chronicle.webp",
"config_path": "/opt/cronicle/conf/config.json", "config_path": "/opt/cronicle/conf/config.json",

View File

@@ -6,7 +6,7 @@
], ],
"date_created": "2024-05-02", "date_created": "2024-05-02",
"type": "ct", "type": "ct",
"updateable": false, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": 80, "interface_port": 80,
"documentation": "https://gotify.net/docs/index", "documentation": "https://gotify.net/docs/index",

View File

@@ -9,7 +9,7 @@
"updateable": false, "updateable": false,
"privileged": false, "privileged": false,
"interface_port": 1883, "interface_port": 1883,
"documentation": null, "documentation": "https://github.com/hivemq/hivemq-community-edition/wiki",
"website": "https://www.hivemq.com/", "website": "https://www.hivemq.com/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/hivemq.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/hivemq.webp",
"config_path": "/opt/hivemq/conf/config.xml", "config_path": "/opt/hivemq/conf/config.xml",

View File

@@ -12,7 +12,7 @@
"documentation": "https://docs.n8n.io/", "documentation": "https://docs.n8n.io/",
"website": "https://n8n.io/", "website": "https://n8n.io/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/n8n.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/n8n.webp",
"config_path": "", "config_path": "/opt/n8n.env",
"description": "n8n is a workflow automation tool that enables users to automate various tasks and processes by connecting various data sources, systems, and services. It provides a visual interface for building workflows, allowing users to easily define and automate complex sequences of actions, such as data processing, conditional branching, and API calls. n8n supports a wide range of integrations, making it a versatile tool for automating a variety of use cases, from simple data processing workflows to complex business processes. With its extendable architecture, n8n is designed to be easily customizable and can be adapted to meet the specific needs of different users and industries.", "description": "n8n is a workflow automation tool that enables users to automate various tasks and processes by connecting various data sources, systems, and services. It provides a visual interface for building workflows, allowing users to easily define and automate complex sequences of actions, such as data processing, conditional branching, and API calls. n8n supports a wide range of integrations, making it a versatile tool for automating a variety of use cases, from simple data processing workflows to complex business processes. With its extendable architecture, n8n is designed to be easily customizable and can be adapted to meet the specific needs of different users and industries.",
"install_methods": [ "install_methods": [
{ {
@@ -31,5 +31,10 @@
"username": null, "username": null,
"password": null "password": null
}, },
"notes": [] "notes": [
{
"text": "You may need to configure the `WEBHOOK_URL` in the config file when using a domain.",
"type": "info"
}
]
} }

View File

@@ -1,40 +1,40 @@
{ {
"name": "Navidrome", "name": "Navidrome",
"slug": "navidrome", "slug": "navidrome",
"categories": [ "categories": [
13 13
], ],
"date_created": "2024-05-02", "date_created": "2024-05-02",
"type": "ct", "type": "ct",
"updateable": true, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": 4533, "interface_port": 4533,
"documentation": null, "documentation": "https://www.navidrome.org/docs/",
"website": "https://www.navidrome.org/", "website": "https://www.navidrome.org/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/navidrome.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/navidrome.webp",
"config_path": "/etc/navidrome/navidrome.toml", "config_path": "/etc/navidrome/navidrome.toml",
"description": "Navidrome is a music server solution that makes your music collection accessible from anywhere. It provides a modern web-based user interface and compatibility with a range of third-party mobile apps for both iOS and Android devices. With Navidrome, users can access their music collection from anywhere, whether at home or on the go. The software supports a variety of music formats, making it easy for users to play their favorite songs and albums. Navidrome provides a simple and user-friendly interface for managing and organizing music collections, making it a valuable tool for music lovers who want to access their music from anywhere. The software is designed to be easy to set up and use, making it a popular choice for those who want to host their own music server and enjoy their music collection from anywhere.", "description": "Navidrome is a music server solution that makes your music collection accessible from anywhere. It provides a modern web-based user interface and compatibility with a range of third-party mobile apps for both iOS and Android devices. With Navidrome, users can access their music collection from anywhere, whether at home or on the go. The software supports a variety of music formats, making it easy for users to play their favorite songs and albums. Navidrome provides a simple and user-friendly interface for managing and organizing music collections, making it a valuable tool for music lovers who want to access their music from anywhere. The software is designed to be easy to set up and use, making it a popular choice for those who want to host their own music server and enjoy their music collection from anywhere.",
"install_methods": [ "install_methods": [
{ {
"type": "default", "type": "default",
"script": "ct/navidrome.sh", "script": "ct/navidrome.sh",
"resources": { "resources": {
"cpu": 2, "cpu": 2,
"ram": 1024, "ram": 1024,
"hdd": 4, "hdd": 4,
"os": "debian", "os": "debian",
"version": "12" "version": "12"
} }
} }
], ],
"default_credentials": { "default_credentials": {
"username": null, "username": null,
"password": null "password": null
}, },
"notes": [ "notes": [
{ {
"text": "To change Navidrome music folder path, `nano /etc/navidrome/navidrome.toml`", "text": "To change Navidrome music folder path, `nano /etc/navidrome/navidrome.toml`",
"type": "info" "type": "info"
} }
] ]
} }

View File

@@ -1,41 +0,0 @@
{
"name": "OPNsense",
"slug": "opnsense-vm",
"categories": [
4,
2
],
"date_created": "2025-02-11",
"type": "vm",
"updateable": true,
"privileged": false,
"interface_port": 443,
"documentation": "https://docs.opnsense.org/",
"website": "https://opnsense.org/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/opnsense.webp",
"config_path": "",
"description": "OPNsense is an open-source firewall and routing platform based on FreeBSD. It provides advanced security features, including intrusion detection, VPN support, traffic shaping, and web filtering, with an intuitive web interface for easy management. Known for its reliability and regular updates, OPNsense is a popular choice for both businesses and home networks.",
"install_methods": [
{
"type": "default",
"script": "vm/opnsense-vm.sh",
"resources": {
"cpu": 4,
"ram": 8192,
"hdd": 10,
"os": "FreeBSD",
"version": "latest"
}
}
],
"default_credentials": {
"username": "root",
"password": "opnsense"
},
"notes": [
{
"text": "It will fail with default settings if there is no vmbr0 and vmbr1 on your node. Use advanced settings in this case.",
"type": "warning"
}
]
}

View File

@@ -1,4 +1,109 @@
[ [
{
"name": "Graylog2/graylog2-server",
"version": "7.0.0-alpha.1",
"date": "2025-07-28T11:28:22Z"
},
{
"name": "OliveTin/OliveTin",
"version": "2025.7.28",
"date": "2025-07-28T10:19:38Z"
},
{
"name": "Paymenter/Paymenter",
"version": "v1.2.6",
"date": "2025-07-28T09:31:34Z"
},
{
"name": "mattermost/mattermost",
"version": "v9.11.18",
"date": "2025-07-22T06:18:08Z"
},
{
"name": "gotson/komga",
"version": "1.23.0",
"date": "2025-07-28T08:44:47Z"
},
{
"name": "Checkmk/checkmk",
"version": "v2.3.0p35",
"date": "2025-07-28T08:32:54Z"
},
{
"name": "home-assistant/core",
"version": "2025.7.4",
"date": "2025-07-28T08:15:50Z"
},
{
"name": "PrivateBin/PrivateBin",
"version": "2.0.0",
"date": "2025-07-28T07:48:40Z"
},
{
"name": "esphome/esphome",
"version": "2025.7.4",
"date": "2025-07-28T07:33:36Z"
},
{
"name": "Jackett/Jackett",
"version": "v0.22.2202",
"date": "2025-07-28T06:00:10Z"
},
{
"name": "firefly-iii/firefly-iii",
"version": "v6.2.21",
"date": "2025-07-17T04:46:25Z"
},
{
"name": "theonedev/onedev",
"version": "v12.0.2",
"date": "2025-07-28T03:34:53Z"
},
{
"name": "TryGhost/Ghost-CLI",
"version": "v1.28.1",
"date": "2025-07-28T01:39:35Z"
},
{
"name": "steveiliop56/tinyauth",
"version": "v3.6.2",
"date": "2025-07-17T12:08:03Z"
},
{
"name": "umami-software/umami",
"version": "v2.19.0",
"date": "2025-07-27T22:25:00Z"
},
{
"name": "moghtech/komodo",
"version": "v1.18.4",
"date": "2025-06-25T00:06:56Z"
},
{
"name": "dani-garcia/vaultwarden",
"version": "1.34.2",
"date": "2025-07-27T18:49:05Z"
},
{
"name": "msgbyte/tianji",
"version": "v1.24.7",
"date": "2025-07-27T18:34:18Z"
},
{
"name": "benjaminjonard/koillection",
"version": "1.6.16",
"date": "2025-07-27T14:48:37Z"
},
{
"name": "keycloak/keycloak",
"version": "26.3.2",
"date": "2025-07-24T10:14:27Z"
},
{
"name": "project-zot/zot",
"version": "v2.1.6",
"date": "2025-07-27T01:14:14Z"
},
{ {
"name": "aceberg/WatchYourLAN", "name": "aceberg/WatchYourLAN",
"version": "2.1.3", "version": "2.1.3",
@@ -14,16 +119,6 @@
"version": "4.9.1.2", "version": "4.9.1.2",
"date": "2025-06-26T22:08:00Z" "date": "2025-06-26T22:08:00Z"
}, },
{
"name": "Jackett/Jackett",
"version": "v0.22.2196",
"date": "2025-07-26T05:57:45Z"
},
{
"name": "steveiliop56/tinyauth",
"version": "v3.6.2",
"date": "2025-07-17T12:08:03Z"
},
{ {
"name": "henrygd/beszel", "name": "henrygd/beszel",
"version": "v0.12.1", "version": "v0.12.1",
@@ -36,19 +131,14 @@
}, },
{ {
"name": "ollama/ollama", "name": "ollama/ollama",
"version": "v0.10.0-rc2", "version": "v0.10.0-rc1",
"date": "2025-07-25T21:24:06Z" "date": "2025-07-22T20:40:47Z"
}, },
{ {
"name": "homarr-labs/homarr", "name": "homarr-labs/homarr",
"version": "v1.30.1", "version": "v1.30.1",
"date": "2025-07-25T19:18:09Z" "date": "2025-07-25T19:18:09Z"
}, },
{
"name": "keycloak/keycloak",
"version": "26.3.2",
"date": "2025-07-24T10:14:27Z"
},
{ {
"name": "tailscale/tailscale", "name": "tailscale/tailscale",
"version": "v1.86.1", "version": "v1.86.1",
@@ -64,6 +154,11 @@
"version": "fumadocs-openapi@9.1.5", "version": "fumadocs-openapi@9.1.5",
"date": "2025-07-25T16:20:20Z" "date": "2025-07-25T16:20:20Z"
}, },
{
"name": "emqx/emqx",
"version": "e6.0.0-M2.202508-alpha.1",
"date": "2025-07-25T16:01:00Z"
},
{ {
"name": "heiher/hev-socks5-server", "name": "heiher/hev-socks5-server",
"version": "2.9.0", "version": "2.9.0",
@@ -89,11 +184,6 @@
"version": "v25.3.1", "version": "v25.3.1",
"date": "2025-07-25T03:39:31Z" "date": "2025-07-25T03:39:31Z"
}, },
{
"name": "TryGhost/Ghost-CLI",
"version": "v1.28.0",
"date": "2025-07-25T01:21:13Z"
},
{ {
"name": "Brandawg93/PeaNUT", "name": "Brandawg93/PeaNUT",
"version": "v5.10.0", "version": "v5.10.0",
@@ -144,26 +234,11 @@
"version": "10.0.19", "version": "10.0.19",
"date": "2025-07-16T09:45:14Z" "date": "2025-07-16T09:45:14Z"
}, },
{
"name": "Paymenter/Paymenter",
"version": "v1.2.5",
"date": "2025-07-24T11:52:16Z"
},
{
"name": "Checkmk/checkmk",
"version": "v2.3.0p35-rc2",
"date": "2025-07-24T07:00:54Z"
},
{ {
"name": "zwave-js/zwave-js-ui", "name": "zwave-js/zwave-js-ui",
"version": "v10.10.0", "version": "v10.10.0",
"date": "2025-07-24T06:15:19Z" "date": "2025-07-24T06:15:19Z"
}, },
{
"name": "firefly-iii/firefly-iii",
"version": "v6.2.21",
"date": "2025-07-17T04:46:25Z"
},
{ {
"name": "advplyr/audiobookshelf", "name": "advplyr/audiobookshelf",
"version": "v2.26.3", "version": "v2.26.3",
@@ -239,21 +314,11 @@
"version": "v4.3.1", "version": "v4.3.1",
"date": "2025-07-22T20:10:08Z" "date": "2025-07-22T20:10:08Z"
}, },
{
"name": "esphome/esphome",
"version": "2025.7.3",
"date": "2025-07-22T20:09:49Z"
},
{ {
"name": "rcourtman/Pulse", "name": "rcourtman/Pulse",
"version": "v3.42.0", "version": "v3.42.0",
"date": "2025-07-14T22:07:28Z" "date": "2025-07-14T22:07:28Z"
}, },
{
"name": "msgbyte/tianji",
"version": "v1.24.6",
"date": "2025-07-22T17:14:21Z"
},
{ {
"name": "Dolibarr/dolibarr", "name": "Dolibarr/dolibarr",
"version": "21.0.2", "version": "21.0.2",
@@ -279,16 +344,6 @@
"version": "v1.6.11", "version": "v1.6.11",
"date": "2025-07-22T12:11:38Z" "date": "2025-07-22T12:11:38Z"
}, },
{
"name": "home-assistant/core",
"version": "2025.7.3",
"date": "2025-07-22T08:30:59Z"
},
{
"name": "mattermost/mattermost",
"version": "v9.11.18",
"date": "2025-07-22T06:18:08Z"
},
{ {
"name": "adityachandelgit/BookLore", "name": "adityachandelgit/BookLore",
"version": "v0.34.1", "version": "v0.34.1",
@@ -359,11 +414,6 @@
"version": "sdk/v0.26.0", "version": "sdk/v0.26.0",
"date": "2025-07-20T13:26:30Z" "date": "2025-07-20T13:26:30Z"
}, },
{
"name": "OliveTin/OliveTin",
"version": "2025.7.19",
"date": "2025-07-20T09:44:35Z"
},
{ {
"name": "documenso/documenso", "name": "documenso/documenso",
"version": "v1.12.2-rc.2", "version": "v1.12.2-rc.2",
@@ -404,11 +454,6 @@
"version": "v0.29.0", "version": "v0.29.0",
"date": "2025-07-19T08:54:54Z" "date": "2025-07-19T08:54:54Z"
}, },
{
"name": "theonedev/onedev",
"version": "v12.0.1",
"date": "2025-07-18T15:02:25Z"
},
{ {
"name": "TandoorRecipes/recipes", "name": "TandoorRecipes/recipes",
"version": "1.5.35", "version": "1.5.35",
@@ -419,11 +464,6 @@
"version": "coverity-w30-4.13.0", "version": "coverity-w30-4.13.0",
"date": "2025-07-18T12:05:26Z" "date": "2025-07-18T12:05:26Z"
}, },
{
"name": "emqx/emqx",
"version": "e6.0.0-M1.202507-rc.1",
"date": "2025-07-18T07:48:52Z"
},
{ {
"name": "cross-seed/cross-seed", "name": "cross-seed/cross-seed",
"version": "v6.13.1", "version": "v6.13.1",
@@ -454,11 +494,6 @@
"version": "8.1.15", "version": "8.1.15",
"date": "2025-07-16T18:06:03Z" "date": "2025-07-16T18:06:03Z"
}, },
{
"name": "benjaminjonard/koillection",
"version": "1.6.15",
"date": "2025-07-16T16:47:57Z"
},
{ {
"name": "usememos/memos", "name": "usememos/memos",
"version": "v0.25.0", "version": "v0.25.0",
@@ -504,11 +539,6 @@
"version": "4.3.0", "version": "4.3.0",
"date": "2025-07-15T09:54:38Z" "date": "2025-07-15T09:54:38Z"
}, },
{
"name": "gotson/komga",
"version": "1.22.1",
"date": "2025-07-15T06:44:29Z"
},
{ {
"name": "go-gitea/gitea", "name": "go-gitea/gitea",
"version": "v1.24.3", "version": "v1.24.3",
@@ -704,11 +734,6 @@
"version": "2.37.0", "version": "2.37.0",
"date": "2025-07-04T14:49:43Z" "date": "2025-07-04T14:49:43Z"
}, },
{
"name": "Graylog2/graylog2-server",
"version": "6.3.1",
"date": "2025-07-04T11:20:48Z"
},
{ {
"name": "cloudflare/cloudflared", "name": "cloudflare/cloudflared",
"version": "2025.7.0", "version": "2025.7.0",
@@ -779,11 +804,6 @@
"version": "v7.4.4", "version": "v7.4.4",
"date": "2025-06-30T13:04:22Z" "date": "2025-06-30T13:04:22Z"
}, },
{
"name": "PrivateBin/PrivateBin",
"version": "1.7.8",
"date": "2025-06-30T09:00:54Z"
},
{ {
"name": "typesense/typesense", "name": "typesense/typesense",
"version": "v29.0", "version": "v29.0",
@@ -804,11 +824,6 @@
"version": "v1.6.1", "version": "v1.6.1",
"date": "2025-06-25T21:19:25Z" "date": "2025-06-25T21:19:25Z"
}, },
{
"name": "moghtech/komodo",
"version": "v1.18.4",
"date": "2025-06-25T00:06:56Z"
},
{ {
"name": "arunavo4/gitea-mirror", "name": "arunavo4/gitea-mirror",
"version": "v2.18.0", "version": "v2.18.0",
@@ -879,11 +894,6 @@
"version": "2.0.0-pre3", "version": "2.0.0-pre3",
"date": "2025-06-18T08:01:24Z" "date": "2025-06-18T08:01:24Z"
}, },
{
"name": "project-zot/zot",
"version": "v2.1.5",
"date": "2025-06-17T18:04:11Z"
},
{ {
"name": "donaldzou/WGDashboard", "name": "donaldzou/WGDashboard",
"version": "v4.2.4", "version": "v4.2.4",
@@ -1014,11 +1024,6 @@
"version": "5.10.0", "version": "5.10.0",
"date": "2025-05-28T05:48:20Z" "date": "2025-05-28T05:48:20Z"
}, },
{
"name": "dani-garcia/vaultwarden",
"version": "1.34.1",
"date": "2025-05-26T21:40:54Z"
},
{ {
"name": "stonith404/pingvin-share", "name": "stonith404/pingvin-share",
"version": "v1.13.0", "version": "v1.13.0",
@@ -1064,11 +1069,6 @@
"version": "1.0.0", "version": "1.0.0",
"date": "2025-05-12T07:39:23Z" "date": "2025-05-12T07:39:23Z"
}, },
{
"name": "umami-software/umami",
"version": "v2.18.1",
"date": "2025-05-12T07:16:12Z"
},
{ {
"name": "owncast/owncast", "name": "owncast/owncast",
"version": "v0.2.3", "version": "v0.2.3",

View File

@@ -45,7 +45,7 @@ export const navbarLinks = [
export const mostPopularScripts = ["post-pve-install", "docker", "homeassistant"]; export const mostPopularScripts = ["post-pve-install", "docker", "homeassistant"];
export const analytics = { export const analytics = {
url: "analytics.community-scripts.org", url: "analytics.bramsuurd.nl",
token: "aefee1b9-2a12-4ac2-9d82-a63113edc62e", token: "aefee1b9-2a12-4ac2-9d82-a63113edc62e",
}; };

View File

@@ -15,7 +15,8 @@ update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt-get install -y \
make make \
g++
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Actual Budget" msg_info "Installing Actual Budget"

View File

@@ -13,17 +13,7 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Installing Dependencies" fetch_and_deploy_gh_release "Argus" "release-argus/Argus" "singlefile" "latest" "/opt/argus" "Argus*linux-amd64"
$STD apt-get install -y \
jq
msg_ok "Installed Dependencies"
msg_info "Setup Argus"
RELEASE=$(curl -fsSL https://api.github.com/repos/release-argus/Argus/releases/latest | jq -r .tag_name | sed 's/^v//')
mkdir -p /opt/argus
curl -fsSL "https://github.com/release-argus/Argus/releases/download/${RELEASE}/Argus-${RELEASE}.linux-amd64" -o /opt/argus/Argus
chmod +x /opt/argus/Argus
msg_ok "Setup Argus"
msg_info "Setup Argus Config" msg_info "Setup Argus Config"
cat <<EOF >/opt/argus/config.yml cat <<EOF >/opt/argus/config.yml
@@ -71,7 +61,6 @@ service:
icon_link_to: https://helper-scripts.com/ icon_link_to: https://helper-scripts.com/
web_url: https://github.com/community-scripts/ProxmoxVE/releases web_url: https://github.com/community-scripts/ProxmoxVE/releases
EOF EOF
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Setup Config" msg_ok "Setup Config"
msg_info "Creating Service" msg_info "Creating Service"

View File

@@ -14,13 +14,11 @@ network_check
update_os update_os
NODE_VERSION="22" setup_nodejs NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "cronicle" "jhuckaby/Cronicle"
msg_info "Installing Cronicle Primary Server" msg_info "Configuring Cronicle Primary Server"
LATEST=$(curl -fsSL https://api.github.com/repos/jhuckaby/Cronicle/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
IP=$(hostname -I | awk '{print $1}') IP=$(hostname -I | awk '{print $1}')
mkdir -p /opt/cronicle
cd /opt/cronicle cd /opt/cronicle
$STD tar zxvf <(curl -fsSL https://github.com/jhuckaby/Cronicle/archive/${LATEST}.tar.gz) --strip-components 1
$STD npm install $STD npm install
$STD node bin/build.js dist $STD node bin/build.js dist
sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json sed -i "s/localhost:3012/${IP}:3012/g" /opt/cronicle/conf/config.json
@@ -29,7 +27,7 @@ $STD /opt/cronicle/bin/control.sh start
$STD cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled $STD cp /opt/cronicle/bin/cronicled.init /etc/init.d/cronicled
chmod 775 /etc/init.d/cronicled chmod 775 /etc/init.d/cronicled
$STD update-rc.d cronicled defaults $STD update-rc.d cronicled defaults
msg_ok "Installed Cronicle Primary Server" msg_ok "Configured Cronicle Primary Server"
motd_ssh motd_ssh
customize customize

View File

@@ -13,7 +13,7 @@ setting_up_container
network_check network_check
update_os update_os
fetch_and_deploy_gh_release "go2rtc" "AlexxIT/go2rtc" "singlefile" "latest" "/opt/go2rtc" "go2rtc_linux_amd64" USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "go2rtc" "AlexxIT/go2rtc" "singlefile" "latest" "/opt/go2rtc" "go2rtc_linux_amd64"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/go2rtc.service cat <<EOF >/etc/systemd/system/go2rtc.service

View File

@@ -13,16 +13,8 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Installing Gotify" fetch_and_deploy_gh_release "gotify" "gotify/server" "prebuild" "latest" "/opt/gotify" "gotify-linux-amd64.zip"
RELEASE=$(curl -fsSL https://api.github.com/repos/gotify/server/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') chmod +x /opt/gotify/gotify-linux-amd64
mkdir -p /opt/gotify
cd /opt/gotify
curl -fsSL "https://github.com/gotify/server/releases/download/v${RELEASE}/gotify-linux-amd64.zip" -o "gotify-linux-amd64.zip"
$STD unzip gotify-linux-amd64.zip
rm -rf gotify-linux-amd64.zip
chmod +x gotify-linux-amd64
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Installed Gotify"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/gotify.service cat <<EOF >/etc/systemd/system/gotify.service

View File

@@ -14,20 +14,20 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y apt-transport-https $STD apt-get install -y \
$STD apt-get install -y software-properties-common apt-transport-https \
software-properties-common
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up Grafana Repository" msg_info "Setting up Grafana Repository"
curl -fsSL "https://apt.grafana.com/gpg.key" -o "/usr/share/keyrings/grafana.key" curl -fsSL "https://apt.grafana.com/gpg.key" -o "/usr/share/keyrings/grafana.key"
sh -c 'echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" > /etc/apt/sources.list.d/grafana.list' echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" >/etc/apt/sources.list.d/grafana.list
msg_ok "Set up Grafana Repository" msg_ok "Set up Grafana Repository"
msg_info "Installing Grafana" msg_info "Installing Grafana"
$STD apt-get update $STD apt-get update
$STD apt-get install -y grafana $STD apt-get install -y grafana
systemctl start grafana-server systemctl enable -q --now grafana-server
systemctl enable --now -q grafana-server.service
msg_ok "Installed Grafana" msg_ok "Installed Grafana"
motd_ssh motd_ssh

View File

@@ -17,23 +17,10 @@ msg_info "Installing Dependencies"
$STD apt-get install -y apt-transport-https $STD apt-get install -y apt-transport-https
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing PHP8.2" PHP_VERSION="8.3" PHP_MODULE="sqlite3,bz2" PHP_APACHE="yes" setup_php
VERSION="$(awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release)" fetch_and_deploy_gh_release "grocy" "grocy/grocy" "prebuild" "latest" "/var/www/html" "grocy*.zip"
curl -fsSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg
echo -e "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $VERSION main" >/etc/apt/sources.list.d/php.list
$STD apt-get update
$STD apt-get install -y php8.2
$STD apt-get install -y libapache2-mod-php8.2
$STD apt-get install -y php8.2-sqlite3
$STD apt-get install -y php8.2-gd
$STD apt-get install -y php8.2-intl
$STD apt-get install -y php8.2-mbstring
msg_ok "Installed PHP8.2"
msg_info "Installing grocy" msg_info "Configuring grocy"
latest=$(curl -fsSL https://api.github.com/repos/grocy/grocy/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
curl -fsSL "https://github.com/grocy/grocy/releases/download/v${latest}/grocy_${latest}.zip" -o "grocy_${latest}.zip"
$STD unzip grocy_${latest}.zip -d /var/www/html
chown -R www-data:www-data /var/www/html chown -R www-data:www-data /var/www/html
cp /var/www/html/config-dist.php /var/www/html/data/config.php cp /var/www/html/config-dist.php /var/www/html/data/config.php
chmod +x /var/www/html/update.sh chmod +x /var/www/html/update.sh
@@ -64,5 +51,4 @@ customize
msg_info "Cleaning up" msg_info "Cleaning up"
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
rm -rf /root/grocy_${latest}.zip
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@@ -13,34 +13,26 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Installing OpenJDK" JAVA_VERSION="21" setup_java
curl -fsSL "https://packages.adoptium.net/artifactory/api/gpg/key/public" | gpg --dearmor >/etc/apt/trusted.gpg.d/adoptium.gpg fetch_and_deploy_gh_release "hivemq" "hivemq/hivemq-community-edition" "prebuild" "latest" "/opt/hivemq" "hivemq-ce-*.zip"
echo 'deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/adoptium.gpg] https://packages.adoptium.net/artifactory/deb bookworm main' >/etc/apt/sources.list.d/adoptium.list
$STD apt-get update
$STD apt-get install -y temurin-17-jre
msg_ok "Installed OpenJDK"
msg_info "Installing HiveMQ CE" msg_info "Configuring HiveMQ CE"
RELEASE=$(curl -fsSL https://api.github.com/repos/hivemq/hivemq-community-edition/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
curl -fsSL "https://github.com/hivemq/hivemq-community-edition/releases/download/${RELEASE}/hivemq-ce-${RELEASE}.zip" -o "hivemq-ce-${RELEASE}.zip"
$STD unzip hivemq-ce-${RELEASE}.zip
mkdir -p /opt/hivemq
mv hivemq-ce-${RELEASE}/* /opt/hivemq
useradd -d /opt/hivemq hivemq useradd -d /opt/hivemq hivemq
chown -R hivemq:hivemq /opt/hivemq chown -R hivemq:hivemq /opt/hivemq
chmod +x /opt/hivemq/bin/run.sh chmod +x /opt/hivemq/bin/run.sh
cp /opt/hivemq/bin/init-script/hivemq.service /etc/systemd/system/hivemq.service cp /opt/hivemq/bin/init-script/hivemq.service /etc/systemd/system/hivemq.service
rm /opt/hivemq/conf/config.xml rm /opt/hivemq/conf/config.xml
mv /opt/hivemq/conf/examples/configuration/config-sample-tcp-and-websockets.xml /opt/hivemq/conf/config.xml mv /opt/hivemq/conf/examples/configuration/config-sample-tcp-and-websockets.xml /opt/hivemq/conf/config.xml
msg_ok "Configured HiveMQ CE"
msg_info "Starting service"
systemctl enable -q --now hivemq systemctl enable -q --now hivemq
msg_ok "Installed HiveMQ CE" msg_ok "Service started"
motd_ssh motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf hivemq-ce-${RELEASE}.zip
rm -rf ../hivemq-ce-${RELEASE}
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@@ -64,6 +64,7 @@ $STD pnpm install --frozen-lockfile
$STD pnpm build $STD pnpm build
cd /opt/karakeep/apps/workers cd /opt/karakeep/apps/workers
$STD pnpm install --frozen-lockfile $STD pnpm install --frozen-lockfile
$STD pnpm build
cd /opt/karakeep/apps/cli cd /opt/karakeep/apps/cli
$STD pnpm install --frozen-lockfile $STD pnpm install --frozen-lockfile
$STD pnpm build $STD pnpm build
@@ -167,7 +168,7 @@ Wants=network.target karakeep-browser.service meilisearch.service
After=network.target karakeep-browser.service meilisearch.service After=network.target karakeep-browser.service meilisearch.service
[Service] [Service]
ExecStart=pnpm start:prod ExecStart=/usr/bin/node dist/index.mjs
WorkingDirectory=/opt/karakeep/apps/workers WorkingDirectory=/opt/karakeep/apps/workers
EnvironmentFile=/etc/karakeep/karakeep.env EnvironmentFile=/etc/karakeep/karakeep.env
Restart=always Restart=always

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck # Copyright (c) 2021-2025 tteck
# Author: tteck (tteckster) # Author: tteck (tteckster) | Co-Author: CrazyWolf13
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://n8n.io/ # Source: https://n8n.io/
@@ -26,13 +26,22 @@ $STD npm install --global n8n
msg_ok "Installed n8n" msg_ok "Installed n8n"
msg_info "Creating Service" msg_info "Creating Service"
HOST_IP=$(hostname -I | awk '{print $1}')
mkdir -p /opt
cat <<EOF >/opt/n8n.env
N8N_SECURE_COOKIE=false
N8N_PORT=5678
N8N_PROTOCOL=http
N8N_HOST=$HOST_IP
EOF
cat <<EOF >/etc/systemd/system/n8n.service cat <<EOF >/etc/systemd/system/n8n.service
[Unit] [Unit]
Description=n8n Description=n8n
[Service] [Service]
Type=simple Type=simple
Environment="N8N_SECURE_COOKIE=false" EnvironmentFile="/opt/n8n.env"
ExecStart=n8n start ExecStart=n8n start
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@@ -14,18 +14,14 @@ network_check
update_os update_os
msg_info "Installing Dependencies (Patience)" msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y \ $STD apt-get install -y ffmpeg
ffmpeg
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Navidrome" fetch_and_deploy_gh_release "navidrome" "navidrome/navidrome" "binary"
RELEASE=$(curl -fsSL https://api.github.com/repos/navidrome/navidrome/releases/latest | grep "tag_name" | awk -F '"' '{print $4}')
TMP_DEB=$(mktemp --suffix=.deb) msg_info "Starting Navidrome"
curl -fsSL -o "${TMP_DEB}" "https://github.com/navidrome/navidrome/releases/download/${RELEASE}/navidrome_${RELEASE#v}_linux_amd64.deb"
$STD apt-get install -y "${TMP_DEB}"
systemctl enable -q --now navidrome systemctl enable -q --now navidrome
echo "${RELEASE}" >/opt/Navidrome_version.txt msg_ok "Started Navidrome"
msg_ok "Installed Navidrome"
read -p "${TAB3}Do you want to install filebrowser addon? (y/n) " -n 1 -r read -p "${TAB3}Do you want to install filebrowser addon? (y/n) " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]; then if [[ $REPLY =~ ^[Yy]$ ]]; then
@@ -36,7 +32,6 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -f "${TMP_DEB}"
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@@ -152,4 +152,11 @@ EOF
echo "bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/${app}.sh)\"" >/usr/bin/update echo "bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/${app}.sh)\"" >/usr/bin/update
chmod +x /usr/bin/update chmod +x /usr/bin/update
if [[ -n "${SSH_AUTHORIZED_KEY}" ]]; then
mkdir -p /root/.ssh
echo "${SSH_AUTHORIZED_KEY}" >/root/.ssh/authorized_keys
chmod 700 /root/.ssh
chmod 600 /root/.ssh/authorized_keys
fi
} }

View File

@@ -66,13 +66,36 @@ root_check() {
# 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 -Eq "pve-manager/8\.[0-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
# When a node is running tens of containers, it's possible to exceed the kernel's cryptographic key storage allocations. # When a node is running tens of containers, it's possible to exceed the kernel's cryptographic key storage allocations.
@@ -226,6 +249,7 @@ write_config() {
# This function writes the configuration to a file. # This function writes the configuration to a file.
if whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "Write configfile" --yesno "Do you want to write the selections to a config file?" 10 60; then if whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "Write configfile" --yesno "Do you want to write the selections to a config file?" 10 60; then
FILEPATH="/opt/community-scripts/${NSAPP}.conf" FILEPATH="/opt/community-scripts/${NSAPP}.conf"
[[ "$GATE" =~ ",gw=" ]] && local GATE="${GATE##,gw=}"
if [[ ! -f $FILEPATH ]]; then if [[ ! -f $FILEPATH ]]; then
cat <<EOF >"$FILEPATH" cat <<EOF >"$FILEPATH"
# ${NSAPP} Configuration File # ${NSAPP} Configuration File

View File

@@ -272,7 +272,8 @@ config_file() {
GATE="" GATE=""
elif [[ "$NET" =~ $ip_cidr_regex ]]; then elif [[ "$NET" =~ $ip_cidr_regex ]]; then
echo -e "${NETWORK}${BOLD}${DGN}IP Address: ${BGN}$NET${CL}" echo -e "${NETWORK}${BOLD}${DGN}IP Address: ${BGN}$NET${CL}"
if [ ! -z "$GATE" ]; then if [[ -n "$GATE" ]]; then
[[ "$GATE" =~ ",gw=" ]] && GATE="${GATE##,gw=}"
if [[ "$GATE" =~ $ip_regex ]]; then if [[ "$GATE" =~ $ip_regex ]]; then
echo -e "${GATEWAY}${BOLD}${DGN}Gateway IP Address: ${BGN}$GATE${CL}" echo -e "${GATEWAY}${BOLD}${DGN}Gateway IP Address: ${BGN}$GATE${CL}"
GATE=",gw=$GATE" GATE=",gw=$GATE"

View File

@@ -32,7 +32,6 @@ function on_exit() {
} }
function error_handler() { function error_handler() {
local exit_code="$?" local exit_code="$?"
local line_number="$1" local line_number="$1"
local command="$2" local command="$2"
@@ -51,6 +50,14 @@ function on_terminate() {
exit 143 exit 143
} }
function exit_script() {
clear
printf "\e[?25h"
echo -e "\n${CROSS}${RD}User exited script${CL}\n"
kill 0
exit 1
}
function check_storage_support() { function check_storage_support() {
local CONTENT="$1" local CONTENT="$1"
local -a VALID_STORAGES=() local -a VALID_STORAGES=()
@@ -64,21 +71,7 @@ function check_storage_support() {
[[ ${#VALID_STORAGES[@]} -gt 0 ]] [[ ${#VALID_STORAGES[@]} -gt 0 ]]
} }
# This checks for the presence of valid Container Storage and Template Storage locations # This function selects a storage pool for a given content type (e.g., rootdir, vztmpl).
msg_info "Validating Storage"
if ! check_storage_support "rootdir"; then
msg_error "No valid storage found for 'rootdir' (Container)."
exit 1
fi
if ! check_storage_support "vztmpl"; then
msg_error "No valid storage found for 'vztmpl' (Template)."
exit 1
fi
msg_ok "Validated Storage (rootdir / vztmpl)."
# This function is used to select the storage class and determine the corresponding storage content type and label.
function select_storage() { function select_storage() {
local CLASS=$1 CONTENT CONTENT_LABEL local CLASS=$1 CONTENT CONTENT_LABEL
@@ -113,8 +106,20 @@ function select_storage() {
;; ;;
esac esac
local -a MENU # Check for preset STORAGE variable
if [ "$CONTENT" = "rootdir" ] && [ -n "${STORAGE:-}" ]; then
if pvesm status -content "$CONTENT" | awk 'NR>1 {print $1}' | grep -qx "$STORAGE"; then
STORAGE_RESULT="$STORAGE"
msg_info "Using preset storage: $STORAGE_RESULT for $CONTENT_LABEL"
return 0
else
msg_error "Preset storage '$STORAGE' is not valid for content type '$CONTENT'."
return 2
fi
fi
local -A STORAGE_MAP local -A STORAGE_MAP
local -a MENU
local COL_WIDTH=0 local COL_WIDTH=0
while read -r TAG TYPE _ TOTAL USED FREE _; do while read -r TAG TYPE _ TOTAL USED FREE _; do
@@ -135,17 +140,23 @@ local -a MENU
if [ $((${#MENU[@]} / 3)) -eq 1 ]; then if [ $((${#MENU[@]} / 3)) -eq 1 ]; then
STORAGE_RESULT="${STORAGE_MAP[${MENU[0]}]}" STORAGE_RESULT="${STORAGE_MAP[${MENU[0]}]}"
STORAGE_INFO="${MENU[1]}"
return 0 return 0
fi fi
local WIDTH=$((COL_WIDTH + 42)) local WIDTH=$((COL_WIDTH + 42))
while true; do while true; do
local DISPLAY_SELECTED=$(whiptail --backtitle "Proxmox VE Helper Scripts" \ local DISPLAY_SELECTED
DISPLAY_SELECTED=$(whiptail --backtitle "Proxmox VE Helper Scripts" \
--title "Storage Pools" \ --title "Storage Pools" \
--radiolist "Which storage pool for ${CONTENT_LABEL,,}?\n(Spacebar to select)" \ --radiolist "Which storage pool for ${CONTENT_LABEL,,}?\n(Spacebar to select)" \
16 "$WIDTH" 6 "${MENU[@]}" 3>&1 1>&2 2>&3) 16 "$WIDTH" 6 "${MENU[@]}" 3>&1 1>&2 2>&3)
[[ $? -ne 0 ]] && return 3 # Cancel or ESC
[[ $? -ne 0 ]] && exit_script
# Strip trailing whitespace or newline (important for storages like "storage (dir)")
DISPLAY_SELECTED=$(sed 's/[[:space:]]*$//' <<<"$DISPLAY_SELECTED")
if [[ -z "$DISPLAY_SELECTED" || -z "${STORAGE_MAP[$DISPLAY_SELECTED]+_}" ]]; then if [[ -z "$DISPLAY_SELECTED" || -z "${STORAGE_MAP[$DISPLAY_SELECTED]+_}" ]]; then
whiptail --msgbox "No valid storage selected. Please try again." 8 58 whiptail --msgbox "No valid storage selected. Please try again." 8 58
@@ -153,6 +164,12 @@ local -a MENU
fi fi
STORAGE_RESULT="${STORAGE_MAP[$DISPLAY_SELECTED]}" STORAGE_RESULT="${STORAGE_MAP[$DISPLAY_SELECTED]}"
for ((i = 0; i < ${#MENU[@]}; i += 3)); do
if [[ "${MENU[$i]}" == "$DISPLAY_SELECTED" ]]; then
STORAGE_INFO="${MENU[$i + 1]}"
break
fi
done
return 0 return 0
done done
} }
@@ -181,45 +198,22 @@ if qm status "$CTID" &>/dev/null || pct status "$CTID" &>/dev/null; then
exit 206 exit 206
fi fi
# DEFAULT_FILE="/usr/local/community-scripts/default_storage" # This checks for the presence of valid Container Storage and Template Storage locations
# if [[ -f "$DEFAULT_FILE" ]]; then msg_info "Validating Storage"
# source "$DEFAULT_FILE" if ! check_storage_support "rootdir"; then
# if [[ -n "$TEMPLATE_STORAGE" && -n "$CONTAINER_STORAGE" ]]; then msg_error "No valid storage found for 'rootdir' (Container)."
# msg_info "Using default storage configuration from: $DEFAULT_FILE" exit 1
# msg_ok "Template Storage: ${BL}$TEMPLATE_STORAGE${CL} ${GN}|${CL} Container Storage: ${BL}$CONTAINER_STORAGE${CL}" fi
# else if ! check_storage_support "vztmpl"; then
# msg_warn "Default storage file exists but is incomplete falling back to manual selection" msg_error "No valid storage found for 'vztmpl' (Template)."
# TEMPLATE_STORAGE=$(select_storage template) exit 1
# msg_ok "Using ${BL}$TEMPLATE_STORAGE${CL} ${GN}for Template Storage." fi
# CONTAINER_STORAGE=$(select_storage container) msg_ok "Valid Storage Found"
# msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage."
# fi
# else
# # TEMPLATE STORAGE SELECTION
# # Template Storage
# while true; do
# TEMPLATE_STORAGE=$(select_storage template)
# if [[ -n "$TEMPLATE_STORAGE" ]]; then
# msg_ok "Using ${BL}$TEMPLATE_STORAGE${CL} ${GN}for Template Storage."
# break
# fi
# msg_warn "No valid template storage selected. Please try again."
# done
# while true; do
# CONTAINER_STORAGE=$(select_storage container)
# if [[ -n "$CONTAINER_STORAGE" ]]; then
# msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage."
# break
# fi
# msg_warn "No valid container storage selected. Please try again."
# done
# fi
while true; do while true; do
if select_storage template; then if select_storage template; then
TEMPLATE_STORAGE="$STORAGE_RESULT" TEMPLATE_STORAGE="$STORAGE_RESULT"
TEMPLATE_STORAGE_INFO="$STORAGE_INFO"
break break
fi fi
done done
@@ -227,9 +221,11 @@ done
while true; do while true; do
if select_storage container; then if select_storage container; then
CONTAINER_STORAGE="$STORAGE_RESULT" CONTAINER_STORAGE="$STORAGE_RESULT"
CONTAINER_STORAGE_INFO="$STORAGE_INFO"
break break
fi fi
done done
msg_ok "Validated Storage | Container: ${BL}$CONTAINER_STORAGE${CL} ($CONTAINER_STORAGE_INFO)"
# Check free space on selected container storage # Check free space on selected container storage
STORAGE_FREE=$(pvesm status | awk -v s="$CONTAINER_STORAGE" '$1 == s { print $6 }') STORAGE_FREE=$(pvesm status | awk -v s="$CONTAINER_STORAGE" '$1 == s { print $6 }')
@@ -276,28 +272,34 @@ fi
TEMPLATE="${TEMPLATES[-1]}" TEMPLATE="${TEMPLATES[-1]}"
TEMPLATE_PATH="$(pvesm path $TEMPLATE_STORAGE:vztmpl/$TEMPLATE 2>/dev/null || echo "/var/lib/vz/template/cache/$TEMPLATE")" TEMPLATE_PATH="$(pvesm path $TEMPLATE_STORAGE:vztmpl/$TEMPLATE 2>/dev/null || echo "/var/lib/vz/template/cache/$TEMPLATE")"
# Check if template exists and is valid TEMPLATE_VALID=1
if ! pveam list "$TEMPLATE_STORAGE" | grep -q "$TEMPLATE" || ! zstdcat "$TEMPLATE_PATH" | tar -tf - >/dev/null 2>&1; then if ! pveam list "$TEMPLATE_STORAGE" | grep -q "$TEMPLATE"; then
msg_warn "Template $TEMPLATE not found or appears to be corrupted. Re-downloading." TEMPLATE_VALID=0
elif [ ! -s "$TEMPLATE_PATH" ]; then
TEMPLATE_VALID=0
elif ! tar --use-compress-program=zstdcat -tf "$TEMPLATE_PATH" >/dev/null 2>&1; then
TEMPLATE_VALID=0
fi
if [ "$TEMPLATE_VALID" -eq 0 ]; then
msg_warn "Template $TEMPLATE not found or appears to be corrupted. Re-downloading."
[[ -f "$TEMPLATE_PATH" ]] && rm -f "$TEMPLATE_PATH" [[ -f "$TEMPLATE_PATH" ]] && rm -f "$TEMPLATE_PATH"
for attempt in {1..3}; do for attempt in {1..3}; do
msg_info "Attempt $attempt: Downloading LXC template..." msg_info "Attempt $attempt: Downloading LXC template..."
if pveam download "$TEMPLATE_STORAGE" "$TEMPLATE" >/dev/null 2>&1; then if pveam download "$TEMPLATE_STORAGE" "$TEMPLATE" >/dev/null 2>&1; then
msg_ok "Template download successful." msg_ok "Template download successful."
break break
fi fi
if [ $attempt -eq 3 ]; then if [ $attempt -eq 3 ]; then
msg_error "Failed after 3 attempts. Please check your Proxmox hosts internet access or manually run:\n pveam download $TEMPLATE_STORAGE $TEMPLATE" msg_error "Failed after 3 attempts. Please check network access or manually run:\n pveam download $TEMPLATE_STORAGE $TEMPLATE"
exit 208 exit 208
fi fi
sleep $((attempt * 5)) sleep $((attempt * 5))
done done
fi fi
msg_ok "LXC Template '$TEMPLATE' is ready to use."
msg_info "Creating LXC Container" msg_info "Creating LXC Container"
# Check and fix subuid/subgid # Check and fix subuid/subgid
grep -q "root:100000:65536" /etc/subuid || echo "root:100000:65536" >>/etc/subuid grep -q "root:100000:65536" /etc/subuid || echo "root:100000:65536" >>/etc/subuid
@@ -309,7 +311,7 @@ PCT_OPTIONS=(${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}})
# Secure creation of the LXC container with lock and template check # Secure creation of the LXC container with lock and template check
lockfile="/tmp/template.${TEMPLATE}.lock" lockfile="/tmp/template.${TEMPLATE}.lock"
exec 9>"$lockfile" >/dev/null 2>&1 || { exec 9>"$lockfile" || {
msg_error "Failed to create lock file '$lockfile'." msg_error "Failed to create lock file '$lockfile'."
exit 200 exit 200
} }
@@ -347,7 +349,6 @@ if ! pct create "$CTID" "${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE}" "${PCT_OPTIONS[
done done
sleep 1 # I/O-Sync-Delay sleep 1 # I/O-Sync-Delay
msg_ok "Re-downloaded LXC Template" msg_ok "Re-downloaded LXC Template"
fi fi

View File

@@ -959,7 +959,7 @@ function fetch_and_deploy_gh_release() {
$STD apt-get install -y unzip $STD apt-get install -y unzip
fi fi
unzip -q "$tmpdir/$filename" -d "$unpack_tmp" unzip -q "$tmpdir/$filename" -d "$unpack_tmp"
elif [[ "$filename" == *.tar.* ]]; then elif [[ "$filename" == *.tar.* || "$filename" == *.tgz ]]; then
tar -xf "$tmpdir/$filename" -C "$unpack_tmp" tar -xf "$tmpdir/$filename" -C "$unpack_tmp"
else else
msg_error "Unsupported archive format: $filename" msg_error "Unsupported archive format: $filename"
@@ -969,23 +969,41 @@ function fetch_and_deploy_gh_release() {
local top_dirs local top_dirs
top_dirs=$(find "$unpack_tmp" -mindepth 1 -maxdepth 1 -type d | wc -l) top_dirs=$(find "$unpack_tmp" -mindepth 1 -maxdepth 1 -type d | wc -l)
local top_entries inner_dir
if [[ "$top_dirs" -eq 1 ]]; then top_entries=$(find "$unpack_tmp" -mindepth 1 -maxdepth 1)
if [[ "$(echo "$top_entries" | wc -l)" -eq 1 && -d "$top_entries" ]]; then
# Strip leading folder # Strip leading folder
local inner_dir inner_dir="$top_entries"
inner_dir=$(find "$unpack_tmp" -mindepth 1 -maxdepth 1 -type d)
shopt -s dotglob nullglob shopt -s dotglob nullglob
cp -r "$inner_dir"/* "$target/" if compgen -G "$inner_dir/*" >/dev/null; then
cp -r "$inner_dir"/* "$target/" || {
msg_error "Failed to copy contents from $inner_dir to $target"
rm -rf "$tmpdir" "$unpack_tmp"
return 1
}
else
msg_error "Inner directory is empty: $inner_dir"
rm -rf "$tmpdir" "$unpack_tmp"
return 1
fi
shopt -u dotglob nullglob shopt -u dotglob nullglob
else else
# Copy all contents # Copy all contents
shopt -s dotglob nullglob shopt -s dotglob nullglob
cp -r "$unpack_tmp"/* "$target/" if compgen -G "$unpack_tmp/*" >/dev/null; then
cp -r "$unpack_tmp"/* "$target/" || {
msg_error "Failed to copy contents to $target"
rm -rf "$tmpdir" "$unpack_tmp"
return 1
}
else
msg_error "Unpacked archive is empty"
rm -rf "$tmpdir" "$unpack_tmp"
return 1
fi
shopt -u dotglob nullglob shopt -u dotglob nullglob
fi fi
rm -rf "$unpack_tmp"
### Singlefile Mode ### ### Singlefile Mode ###
elif [[ "$mode" == "singlefile" ]]; then elif [[ "$mode" == "singlefile" ]]; then
local pattern="${6%\"}" local pattern="${6%\"}"

View File

@@ -138,14 +138,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -138,14 +138,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -139,14 +139,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -142,14 +142,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -139,14 +139,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -138,14 +138,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -184,14 +184,37 @@ function msg_error() {
echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}" echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -180,14 +180,37 @@ function msg_error() {
echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}" echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}"
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -139,14 +139,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -147,14 +147,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -134,14 +134,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -137,14 +137,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -136,14 +136,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -136,14 +136,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {

View File

@@ -138,14 +138,37 @@ function check_root() {
fi fi
} }
function pve_check() { pve_check() {
if ! pveversion | grep -Eq "pve-manager/8\.[1-4](\.[0-9]+)*"; then local PVE_VER
msg_error "${CROSS}${RD}This version of Proxmox Virtual Environment is not supported" PVE_VER="$(pveversion | awk -F'/' '{print $2}' | awk -F'-' '{print $1}')"
echo -e "Requires Proxmox Virtual Environment Version 8.1 or later."
echo -e "Exiting..." # Check for Proxmox VE 8.x
sleep 2 if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
exit local MINOR="${BASH_REMATCH[1]}"
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox VE is not supported."
echo -e "Required: Proxmox VE version 8.1 8.4"
exit 1
fi
return 0
fi fi
# Check for Proxmox VE 9.x (Beta) — require confirmation
if [[ "$PVE_VER" =~ ^9\.([0-9]+) ]]; then
if whiptail --title "Proxmox 9.x Detected (Beta)" \
--yesno "You are using Proxmox VE $PVE_VER, which is currently in Beta state.\n\nThis version is experimentally supported.\n\nDo you want to proceed anyway?" 12 70; then
msg_ok "Confirmed: Continuing with Proxmox VE $PVE_VER"
return 0
else
msg_error "Aborted by user: Proxmox VE 9.x was not confirmed."
exit 1
fi
fi
# All other unsupported versions
msg_error "This version of Proxmox VE is not supported."
echo -e "Supported versions: Proxmox VE 8.1 8.4 or 9.x (Beta, with confirmation)"
exit 1
} }
function arch_check() { function arch_check() {