This commit is contained in:
CanbiZ 2025-09-15 15:37:56 +02:00
parent 8d687ba9ab
commit 3f69160fb9
48 changed files with 685 additions and 688 deletions

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -19,7 +19,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -18,7 +18,7 @@ header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -18,7 +18,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="1"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -19,7 +19,7 @@ var_tun="${var_tun:-yes}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="1"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -26,7 +26,7 @@ var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-12}"
variables variables
color color
catch_errors init_error_traps
function default_settings() { function default_settings() {
CT_TYPE="1" CT_TYPE="1"

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -16,7 +16,7 @@ var_version="${var_version:-12}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -16,7 +16,7 @@ var_unprivileged="${var_unprivileged:-1}"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info
@ -29,8 +29,7 @@ function update_script() {
fi fi
if whiptail --backtitle "Vikunja Update" --title "🔄 VERSION SELECTION" --yesno \ if whiptail --backtitle "Vikunja Update" --title "🔄 VERSION SELECTION" --yesno \
"Choose the version type to update to:\n\n• STABLE: Recommended for production use\n• UNSTABLE: Latest development version\n\n⚠ WARNING: Unstable versions may contain bugs,\nbe incomplete, or cause system instability.\nOnly use for testing purposes.\n\nDo you want to use the UNSTABLE version?\n(No = Stable, Yes = Unstable)" 16 70 --defaultno "Choose the version type to update to:\n\n• STABLE: Recommended for production use\n• UNSTABLE: Latest development version\n\n⚠ WARNING: Unstable versions may contain bugs,\nbe incomplete, or cause system instability.\nOnly use for testing purposes.\n\nDo you want to use the UNSTABLE version?\n(No = Stable, Yes = Unstable)" 16 70 --defaultno; then
then
msg_info "Selecting version" msg_info "Selecting version"
RELEASE="unstable" RELEASE="unstable"
FILENAME="vikunja-${RELEASE}-x86_64.deb" FILENAME="vikunja-${RELEASE}-x86_64.deb"

View File

@ -18,7 +18,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info
@ -37,8 +37,6 @@ function update_script() {
APP_USER="dispatcharr" APP_USER="dispatcharr"
APP_GROUP="dispatcharr" APP_GROUP="dispatcharr"
msg_info "Stopping $APP" msg_info "Stopping $APP"
systemctl stop dispatcharr-celery systemctl stop dispatcharr-celery
systemctl stop dispatcharr-celerybeat systemctl stop dispatcharr-celerybeat
@ -52,8 +50,8 @@ function update_script() {
set -o allexport set -o allexport
source /etc/$APP_NAME/$APP_NAME.env source /etc/$APP_NAME/$APP_NAME.env
set +o allexport set +o allexport
PGPASSWORD=$POSTGRES_PASSWORD pg_dump -U $POSTGRES_USER -h $POSTGRES_HOST $POSTGRES_DB > /opt/$POSTGRES_DB-`date +%F`.sql PGPASSWORD=$POSTGRES_PASSWORD pg_dump -U $POSTGRES_USER -h $POSTGRES_HOST $POSTGRES_DB >/opt/$POSTGRES_DB-$(date +%F).sql
$STD tar -czf "$BACKUP_FILE" /opt/dispatcharr /opt/Dispatcharr_version.txt /opt/$POSTGRES_DB-`date +%F`.sql &>/dev/null $STD tar -czf "$BACKUP_FILE" /opt/dispatcharr /opt/Dispatcharr_version.txt /opt/$POSTGRES_DB-$(date +%F).sql &>/dev/null
msg_ok "Backup Created" msg_ok "Backup Created"
msg_info "Updating $APP to v${RELEASE}" msg_info "Updating $APP to v${RELEASE}"
@ -96,10 +94,10 @@ function update_script() {
systemctl start dispatcharr-daphne systemctl start dispatcharr-daphne
systemctl start dispatcharr systemctl start dispatcharr
msg_ok "Started $APP" msg_ok "Started $APP"
echo "${RELEASE}" > "/opt/${APP}_version.txt" echo "${RELEASE}" >"/opt/${APP}_version.txt"
msg_info "Cleaning Up" msg_info "Cleaning Up"
rm -rf /opt/$POSTGRES_DB-`date +%F`.sql rm -rf /opt/$POSTGRES_DB-$(date +%F).sql
msg_ok "Cleanup Completed" msg_ok "Cleanup Completed"
msg_ok "Update Successful, Backup saved to $BACKUP_FILE" msg_ok "Update Successful, Backup saved to $BACKUP_FILE"

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -18,7 +18,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-0}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
# this only updates garmin-grafana, not influxdb or grafana, which are upgraded with apt # this only updates garmin-grafana, not influxdb or grafana, which are upgraded with apt
function update_script() { function update_script() {

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -16,7 +16,7 @@ var_version="${var_version:-12}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "UPDATE MODE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 14 60 2 \ UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "UPDATE MODE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 14 60 2 \

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info
@ -30,7 +30,7 @@ function update_script() {
if grep -q 'Debian GNU/Linux 12' /etc/os-release && [ -f /etc/apt/sources.list.d/proxmox-release-bookworm.list ] && [ -f /etc/apt/sources.list.d/pdm-test.list ]; then if grep -q 'Debian GNU/Linux 12' /etc/os-release && [ -f /etc/apt/sources.list.d/proxmox-release-bookworm.list ] && [ -f /etc/apt/sources.list.d/pdm-test.list ]; then
msg_info "Updating outdated outdated source formats" msg_info "Updating outdated outdated source formats"
echo "deb [signed-by=/usr/share/keyrings/proxmox-archive-keyring.gpg] http://download.proxmox.com/debian/pdm bookworm pdm-test" > /etc/apt/sources.list.d/pdm-test.list echo "deb [signed-by=/usr/share/keyrings/proxmox-archive-keyring.gpg] http://download.proxmox.com/debian/pdm bookworm pdm-test" >/etc/apt/sources.list.d/pdm-test.list
curl -fsSL https://enterprise.proxmox.com/debian/proxmox-archive-keyring-trixie.gpg -o /usr/share/keyrings/proxmox-archive-keyring.gpg curl -fsSL https://enterprise.proxmox.com/debian/proxmox-archive-keyring-trixie.gpg -o /usr/share/keyrings/proxmox-archive-keyring.gpg
rm -f /etc/apt/keyrings/proxmox-release-bookworm.gpg /etc/apt/sources.list.d/proxmox-release-bookworm.list rm -f /etc/apt/keyrings/proxmox-release-bookworm.gpg /etc/apt/sources.list.d/proxmox-release-bookworm.list
$STD apt-get update $STD apt-get update

View File

@ -18,7 +18,7 @@ var_fuse="${var_fuse:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage

View File

@ -19,7 +19,7 @@ var_unprivileged="${var_unprivileged:-0}"
header_info "$APP" header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -14,7 +14,7 @@ header_info "$APP"
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info

View File

@ -22,7 +22,7 @@ base_settings
# Core # Core
variables variables
color color
catch_errors init_error_traps
function update_script() { function update_script() {
header_info header_info