test
This commit is contained in:
parent
8d687ba9ab
commit
3f69160fb9
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -19,7 +19,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -18,7 +18,7 @@ header_info "$APP"
|
||||
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -18,7 +18,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="1"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -19,7 +19,7 @@ var_tun="${var_tun:-yes}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="1"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -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"
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -16,7 +16,7 @@ var_version="${var_version:-12}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -16,7 +16,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -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"
|
||||
|
@ -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}"
|
||||
@ -96,10 +94,10 @@ function update_script() {
|
||||
systemctl start dispatcharr-daphne
|
||||
systemctl start dispatcharr
|
||||
msg_ok "Started $APP"
|
||||
echo "${RELEASE}" > "/opt/${APP}_version.txt"
|
||||
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"
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -18,7 +18,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-0}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -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() {
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -16,7 +16,7 @@ var_version="${var_version:-12}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -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 \
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
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
|
||||
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
|
||||
rm -f /etc/apt/keyrings/proxmox-release-bookworm.gpg /etc/apt/sources.list.d/proxmox-release-bookworm.list
|
||||
$STD apt-get update
|
||||
|
@ -18,7 +18,7 @@ var_fuse="${var_fuse:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -17,7 +17,7 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -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
|
||||
|
@ -19,7 +19,7 @@ var_unprivileged="${var_unprivileged:-0}"
|
||||
header_info "$APP"
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -14,7 +14,7 @@ header_info "$APP"
|
||||
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
@ -22,7 +22,7 @@ base_settings
|
||||
# Core
|
||||
variables
|
||||
color
|
||||
catch_errors
|
||||
init_error_traps
|
||||
|
||||
function update_script() {
|
||||
header_info
|
||||
|
Loading…
x
Reference in New Issue
Block a user