mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-05 04:13:24 +02:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 93f9ceb93d | |||
| e3e29667c6 | |||
| 3921f03b73 | |||
| 1336b44a26 | |||
| 419f9e397e | |||
| fcbaedf7d8 | |||
| 4eb022fceb | |||
| 6f4d3b4841 | |||
| a4f893eb7c | |||
| 44589819d1 | |||
| 33bfae30e0 | |||
| 3fa516f94b |
+7
-1
@@ -522,12 +522,18 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
### 🆕 New Scripts
|
### 🆕 New Scripts
|
||||||
|
|
||||||
- Obsidian-LiveSync ([#16233](https://github.com/community-scripts/ProxmoxVE/pull/16233))
|
- Hister ([#16259](https://github.com/community-scripts/ProxmoxVE/pull/16259))
|
||||||
|
- Obsidian-LiveSync ([#16233](https://github.com/community-scripts/ProxmoxVE/pull/16233))
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- Actual Budget: allow native module install scripts under npm 11 (Node24) [@MickLesk](https://github.com/MickLesk) ([#16277](https://github.com/community-scripts/ProxmoxVE/pull/16277))
|
||||||
|
- Heimdall-Dashboard: run full composer install on update, force production env [@MickLesk](https://github.com/MickLesk) ([#16278](https://github.com/community-scripts/ProxmoxVE/pull/16278))
|
||||||
|
- xyOps: rebuild xySat satellite during update [@MickLesk](https://github.com/MickLesk) ([#16279](https://github.com/community-scripts/ProxmoxVE/pull/16279))
|
||||||
|
- HAOS: remove non-ASCII dash from CPU model dialog text [@MickLesk](https://github.com/MickLesk) ([#16276](https://github.com/community-scripts/ProxmoxVE/pull/16276))
|
||||||
|
- fix: back up Termix db/data so the update stops destroying encryption keys [@LukeGus](https://github.com/LukeGus) ([#16275](https://github.com/community-scripts/ProxmoxVE/pull/16275))
|
||||||
- passwordpusher: dynamically read Ruby version from .ruby-version file [@Copilot](https://github.com/Copilot) ([#16242](https://github.com/community-scripts/ProxmoxVE/pull/16242))
|
- passwordpusher: dynamically read Ruby version from .ruby-version file [@Copilot](https://github.com/Copilot) ([#16242](https://github.com/community-scripts/ProxmoxVE/pull/16242))
|
||||||
- fix(salt): write version cache to ~/.salt, not /~.salt [@TowyTowy](https://github.com/TowyTowy) ([#16265](https://github.com/community-scripts/ProxmoxVE/pull/16265))
|
- fix(salt): write version cache to ~/.salt, not /~.salt [@TowyTowy](https://github.com/TowyTowy) ([#16265](https://github.com/community-scripts/ProxmoxVE/pull/16265))
|
||||||
- AFFiNE: fix version and build type reported by the app itself [@MickLesk](https://github.com/MickLesk) ([#16251](https://github.com/community-scripts/ProxmoxVE/pull/16251))
|
- AFFiNE: fix version and build type reported by the app itself [@MickLesk](https://github.com/MickLesk) ([#16251](https://github.com/community-scripts/ProxmoxVE/pull/16251))
|
||||||
|
|||||||
@@ -39,7 +39,9 @@ function update_script() {
|
|||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
msg_info "Updating Actual Budget to ${RELEASE}"
|
msg_info "Updating Actual Budget to ${RELEASE}"
|
||||||
|
$STD npm config set allow-scripts=bcrypt,better-sqlite3,argon2 --location=global
|
||||||
$STD npm update -g @actual-app/sync-server
|
$STD npm update -g @actual-app/sync-server
|
||||||
|
$STD npm rebuild -g
|
||||||
echo "${RELEASE}" >~/.actualbudget
|
echo "${RELEASE}" >~/.actualbudget
|
||||||
msg_ok "Updated Actual Budget to ${RELEASE}"
|
msg_ok "Updated Actual Budget to ${RELEASE}"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
__ ___ __
|
||||||
|
/ / / (_)____/ /____ _____
|
||||||
|
/ /_/ / / ___/ __/ _ \/ ___/
|
||||||
|
/ __ / (__ ) /_/ __/ /
|
||||||
|
/_/ /_/_/____/\__/\___/_/
|
||||||
|
|
||||||
@@ -46,8 +46,11 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating Heimdall-Dashboard"
|
msg_info "Updating Heimdall-Dashboard"
|
||||||
cd /opt/Heimdall
|
cd /opt/Heimdall
|
||||||
|
sed -i 's/^APP_ENV=.*/APP_ENV=production/' .env
|
||||||
|
rm -f bootstrap/cache/*.php
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
export COMPOSER_ALLOW_SUPERUSER=1
|
||||||
$STD composer dump-autoload
|
$STD composer install --no-dev --no-interaction --prefer-dist --optimize-autoloader
|
||||||
|
$STD php artisan optimize:clear
|
||||||
msg_ok "Updated Heimdall-Dashboard"
|
msg_ok "Updated Heimdall-Dashboard"
|
||||||
|
|
||||||
msg_info "Restoring Data"
|
msg_info "Restoring Data"
|
||||||
|
|||||||
@@ -0,0 +1,55 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
|
# Author: MickLesk (CanbiZ)
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/asciimoo/hister
|
||||||
|
|
||||||
|
APP="Hister"
|
||||||
|
var_tags="${var_tags:-search;browser-history;personal}"
|
||||||
|
var_cpu="${var_cpu:-1}"
|
||||||
|
var_ram="${var_ram:-1024}"
|
||||||
|
var_disk="${var_disk:-20}"
|
||||||
|
var_os="${var_os:-debian}"
|
||||||
|
var_version="${var_version:-13}"
|
||||||
|
var_arm64="${var_arm64:-yes}"
|
||||||
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
|
header_info "$APP"
|
||||||
|
variables
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
function update_script() {
|
||||||
|
header_info
|
||||||
|
check_container_storage
|
||||||
|
check_container_resources
|
||||||
|
|
||||||
|
if [[ ! -f /usr/local/bin/hister ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_for_gh_release "hister" "asciimoo/hister"; then
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop hister
|
||||||
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "hister" "asciimoo/hister" "singlefile" "latest" "/usr/local/bin" "hister_*_linux_$(arch_resolve)"
|
||||||
|
|
||||||
|
msg_info "Starting Service"
|
||||||
|
systemctl start hister
|
||||||
|
msg_ok "Started Service"
|
||||||
|
msg_ok "Updated successfully!"
|
||||||
|
fi
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
start
|
||||||
|
build_container
|
||||||
|
description
|
||||||
|
|
||||||
|
msg_ok "Completed Successfully!\n"
|
||||||
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
|
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
||||||
|
echo -e "${GATEWAY}${BGN}http://${IP}:4433${CL}"
|
||||||
+38
-10
@@ -112,14 +112,33 @@ EOF
|
|||||||
msg_ok "Stopped Termix"
|
msg_ok "Stopped Termix"
|
||||||
|
|
||||||
msg_info "Migrating Configuration"
|
msg_info "Migrating Configuration"
|
||||||
if [[ ! -f /opt/termix/.env ]]; then
|
mkdir -p /opt/termix/db/data
|
||||||
cat <<EOF >/opt/termix/.env
|
|
||||||
|
if [[ -f /opt/termix/data/db.sqlite.encrypted && ! -f /opt/termix/db/data/db.sqlite.encrypted ]]; then
|
||||||
|
cp -a /opt/termix/data/db.sqlite.encrypted /opt/termix/db/data/db.sqlite.encrypted
|
||||||
|
[[ -f /opt/termix/data/db.sqlite.encrypted.meta ]] &&
|
||||||
|
cp -a /opt/termix/data/db.sqlite.encrypted.meta /opt/termix/db/data/db.sqlite.encrypted.meta
|
||||||
|
[[ -f /opt/termix/data/db.sqlite ]] &&
|
||||||
|
cp -a /opt/termix/data/db.sqlite /opt/termix/db/data/db.sqlite
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f /opt/termix/data/.env && ! -f /opt/termix/db/data/.env ]]; then
|
||||||
|
cp -a /opt/termix/data/.env /opt/termix/db/data/.env
|
||||||
|
fi
|
||||||
|
|
||||||
|
for sub in ssl session_logs session_recordings acme-webroot certbot uploads; do
|
||||||
|
if [[ -d /opt/termix/data/$sub && ! -d /opt/termix/db/data/$sub ]]; then
|
||||||
|
cp -a "/opt/termix/data/$sub" "/opt/termix/db/data/$sub"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
cat <<EOF >/opt/termix/.env
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
DATA_DIR=/opt/termix/data
|
DATA_DIR=/opt/termix/db/data
|
||||||
GUACD_HOST=127.0.0.1
|
GUACD_HOST=127.0.0.1
|
||||||
GUACD_PORT=4822
|
GUACD_PORT=4822
|
||||||
EOF
|
EOF
|
||||||
fi
|
|
||||||
if ! grep -q "EnvironmentFile" /etc/systemd/system/termix.service 2>/dev/null; then
|
if ! grep -q "EnvironmentFile" /etc/systemd/system/termix.service 2>/dev/null; then
|
||||||
cat <<EOF >/etc/systemd/system/termix.service
|
cat <<EOF >/etc/systemd/system/termix.service
|
||||||
[Unit]
|
[Unit]
|
||||||
@@ -143,7 +162,11 @@ EOF
|
|||||||
fi
|
fi
|
||||||
msg_ok "Migrated Configuration"
|
msg_ok "Migrated Configuration"
|
||||||
|
|
||||||
create_backup /opt/termix/data /opt/termix/uploads /opt/termix/.env
|
create_backup \
|
||||||
|
/opt/termix/db/data \
|
||||||
|
/opt/termix/data \
|
||||||
|
/opt/termix/uploads \
|
||||||
|
/opt/termix/.env
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "termix" "Termix-SSH/Termix" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "termix" "Termix-SSH/Termix" "tarball"
|
||||||
|
|
||||||
@@ -158,10 +181,10 @@ EOF
|
|||||||
/opt/termix/db/data
|
/opt/termix/db/data
|
||||||
msg_ok "Recreated Directories"
|
msg_ok "Recreated Directories"
|
||||||
|
|
||||||
if [[ -f /opt/termix/data/db.sqlite.encrypted && ! -f /opt/termix/db/data/db.sqlite.encrypted ]]; then
|
if [[ -f /opt/termix/db/data/db.sqlite.encrypted && ! -f /opt/termix/db/data/.env ]]; then
|
||||||
msg_info "Migrating Database to new layout"
|
msg_error "Encrypted database restored without its keys (/opt/termix/db/data/.env is missing)"
|
||||||
cp -a /opt/termix/data/db.sqlite.encrypted /opt/termix/db/data/db.sqlite.encrypted
|
msg_custom "🛟" "Restore the container from a backup and report this at https://github.com/community-scripts/ProxmoxVE/issues"
|
||||||
msg_ok "Migrated Database to new layout"
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Building Frontend"
|
msg_info "Building Frontend"
|
||||||
@@ -237,7 +260,12 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
msg_info "Starting Termix"
|
msg_info "Starting Termix"
|
||||||
systemctl start termix
|
systemctl daemon-reload
|
||||||
|
if ! systemctl start termix; then
|
||||||
|
msg_error "Termix failed to start"
|
||||||
|
journalctl -u termix -n 30 --no-pager || true
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
msg_ok "Started Termix"
|
msg_ok "Started Termix"
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -48,6 +48,13 @@ function update_script() {
|
|||||||
chmod 644 /opt/xyops/node_modules/useragent-ng/lib/regexps.js
|
chmod 644 /opt/xyops/node_modules/useragent-ng/lib/regexps.js
|
||||||
msg_ok "Rebuilt Application"
|
msg_ok "Rebuilt Application"
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "xysat" "pixlcore/xysat" "tarball" "latest" "/opt/xyops/satellite"
|
||||||
|
|
||||||
|
msg_info "Building xySat Satellite"
|
||||||
|
cd /opt/xyops/satellite
|
||||||
|
$STD npm install
|
||||||
|
msg_ok "Built xySat Satellite"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start xyops
|
systemctl start xyops
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ cat <<EOF >/opt/actualbudget-data/config.json
|
|||||||
EOF
|
EOF
|
||||||
mkdir -p /opt/actualbudget
|
mkdir -p /opt/actualbudget
|
||||||
cd /opt/actualbudget
|
cd /opt/actualbudget
|
||||||
|
$STD npm config set allow-scripts=bcrypt,better-sqlite3,argon2 --location=global
|
||||||
$STD npm install --location=global @actual-app/sync-server
|
$STD npm install --location=global @actual-app/sync-server
|
||||||
echo "${RELEASE}" >~/.actualbudget
|
echo "${RELEASE}" >~/.actualbudget
|
||||||
msg_ok "Installed Actual Budget"
|
msg_ok "Installed Actual Budget"
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ fetch_and_deploy_gh_release "Heimdall" "linuxserver/Heimdall" "tarball"
|
|||||||
msg_info "Setting up Heimdall-Dashboard"
|
msg_info "Setting up Heimdall-Dashboard"
|
||||||
cd /opt/Heimdall
|
cd /opt/Heimdall
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
|
sed -i 's/^APP_ENV=.*/APP_ENV=production/' .env
|
||||||
$STD php artisan key:generate
|
$STD php artisan key:generate
|
||||||
msg_ok "Setup Heimdall-Dashboard"
|
msg_ok "Setup Heimdall-Dashboard"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
|
# Author: MickLesk (CanbiZ)
|
||||||
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
|
# Source: https://github.com/asciimoo/hister
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "hister" "asciimoo/hister" "singlefile" "latest" "/usr/local/bin" "hister_*_linux_$(arch_resolve)"
|
||||||
|
|
||||||
|
msg_info "Configuring Hister"
|
||||||
|
mkdir -p /opt/hister/data /etc/hister
|
||||||
|
LOCAL_IP=$(hostname -I | awk '{print $1}')
|
||||||
|
cat <<EOF >/etc/hister/config.yaml
|
||||||
|
app:
|
||||||
|
directory: '/opt/hister/data'
|
||||||
|
server:
|
||||||
|
address: '0.0.0.0:4433'
|
||||||
|
base_url: 'http://${LOCAL_IP}:4433'
|
||||||
|
EOF
|
||||||
|
msg_ok "Configured Hister"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
cat <<EOF >/etc/systemd/system/hister.service
|
||||||
|
[Unit]
|
||||||
|
Description=Hister Search Engine
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
ExecStart=/usr/local/bin/hister listen --config /etc/hister/config.yaml
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now hister
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -125,7 +125,7 @@ EOF
|
|||||||
|
|
||||||
cat <<EOF >/opt/termix/.env
|
cat <<EOF >/opt/termix/.env
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
DATA_DIR=/opt/termix/data
|
DATA_DIR=/opt/termix/db/data
|
||||||
GUACD_HOST=127.0.0.1
|
GUACD_HOST=127.0.0.1
|
||||||
GUACD_PORT=4822
|
GUACD_PORT=4822
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
+1
-1
@@ -402,7 +402,7 @@ function advanced_settings() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if CPU_TYPE1=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "CPU MODEL" --radiolist "Choose CPU Model" --cancel-button Exit-Script 10 58 2 \
|
if CPU_TYPE1=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "CPU MODEL" --radiolist "Choose CPU Model" --cancel-button Exit-Script 10 58 2 \
|
||||||
"KVM64" "Default – safe for migration/compatibility" ON \
|
"KVM64" "Default - safe for migration/compatibility" ON \
|
||||||
"Host" "Use host CPU features (faster, no migration)" OFF \
|
"Host" "Use host CPU features (faster, no migration)" OFF \
|
||||||
3>&1 1>&2 2>&3); then
|
3>&1 1>&2 2>&3); then
|
||||||
case "$CPU_TYPE1" in
|
case "$CPU_TYPE1" in
|
||||||
|
|||||||
Reference in New Issue
Block a user