mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 02:42:08 +00:00
- On a PBS host the Monitor no longer starts the node metrics and VM prewarmers, the LXC update scheduler, the managed installs detector or the app update emitter, which read guests and PVE metrics that do not exist there - pmx_require_pve refuses only a host known to be PBS, so an unreadable package list leaves the PVE scripts working as before - The PBS menu numbers its options, shows the tables proxmox-backup-manager prints instead of raw JSON, and says Goodbye on exit - The PBS update asks to press Enter before returning - Spanish: Datastores de PBS
54 lines
2.1 KiB
Bash
54 lines
2.1 KiB
Bash
#!/bin/bash
|
|
# ==========================================================
|
|
# ProxMenux - Proxmox Backup Server menu
|
|
# ==========================================================
|
|
# PBS exposes compatible host tools; PVE guest/repository optimizations
|
|
# stay in the PVE menu.
|
|
# ==========================================================
|
|
BASE_DIR="/usr/local/share/proxmenux"
|
|
LOCAL_SCRIPTS="$BASE_DIR/scripts"
|
|
source "$BASE_DIR/utils.sh"
|
|
source "$LOCAL_SCRIPTS/global/platform-functions.sh"
|
|
load_language
|
|
initialize_cache
|
|
|
|
if ! pmx_is_pbs; then
|
|
msg_error "$(translate 'This menu requires Proxmox Backup Server.')"
|
|
exit 1
|
|
fi
|
|
|
|
pbs_show() {
|
|
local title="$1" output
|
|
shift
|
|
output=$(mktemp)
|
|
if "$@" > "$output" 2>&1; then
|
|
dialog --backtitle "ProxMenux" --title "$title" --textbox "$output" 24 110
|
|
else
|
|
dialog --backtitle "ProxMenux" --title "$(translate 'Command failed')" --textbox "$output" 24 110
|
|
fi
|
|
rm -f "$output"
|
|
}
|
|
|
|
while true; do
|
|
choice=$(dialog --clear --backtitle "ProxMenux" --title "Proxmox Backup Server" \
|
|
--menu "$(translate 'Select an option:')" 18 75 8 \
|
|
1 "$(translate 'PBS version and packages')" \
|
|
2 "$(translate 'PBS datastores')" \
|
|
3 "$(translate 'Recent PBS tasks')" \
|
|
4 "$(translate 'System Utilities Installer')" \
|
|
5 "$(translate 'Update PBS using configured repositories')" \
|
|
s "$(translate 'Settings')" \
|
|
0 "$(translate 'Exit')" 2>&1 >/dev/tty) || break
|
|
case "$choice" in
|
|
1) pbs_show "$(translate 'PBS version and packages')" proxmox-backup-manager versions --verbose ;;
|
|
2) pbs_show "$(translate 'PBS datastores')" proxmox-backup-manager datastore list ;;
|
|
3) pbs_show "$(translate 'Recent PBS tasks')" proxmox-backup-manager task list --all true --limit 20 ;;
|
|
4) bash "$LOCAL_SCRIPTS/utilities/system_utils.sh" ;;
|
|
5) bash "$LOCAL_SCRIPTS/utilities/pbs_update.sh" ;;
|
|
s) exec bash "$LOCAL_SCRIPTS/menus/config_menu.sh" ;;
|
|
0) break ;;
|
|
esac
|
|
done
|
|
clear
|
|
msg_ok "$(translate "Thank you for using ProxMenux. Goodbye!")"
|