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"
variables
color
catch_errors
init_error_traps
function update_script() {
header_info

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
init_error_traps
function update_script() {
header_info
@ -29,8 +29,7 @@ function update_script() {
fi
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
then
"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
msg_info "Selecting version"
RELEASE="unstable"
FILENAME="vikunja-${RELEASE}-x86_64.deb"

View File

@ -18,7 +18,7 @@ var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
init_error_traps
function update_script() {
header_info
@ -37,8 +37,6 @@ function update_script() {
APP_USER="dispatcharr"
APP_GROUP="dispatcharr"
msg_info "Stopping $APP"
systemctl stop dispatcharr-celery
systemctl stop dispatcharr-celerybeat
@ -52,8 +50,8 @@ function update_script() {
set -o allexport
source /etc/$APP_NAME/$APP_NAME.env
set +o allexport
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
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
msg_ok "Backup Created"
msg_info "Updating $APP to v${RELEASE}"
@ -99,7 +97,7 @@ function update_script() {
echo "${RELEASE}" >"/opt/${APP}_version.txt"
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 "Update Successful, Backup saved to $BACKUP_FILE"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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