diff --git a/CHANGELOG.md b/CHANGELOG.md index 38886fb..12f2db0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -129,6 +129,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Runs in subshell to avoid environment pollution ### Changed +- **Clearer installation flow when PBS client not installed** + - Shows what the script will do before proceeding + - Lists 3 steps: Install PBS client, Configure target, Set up automation + - Asks for confirmation before installation + - Allows user to cancel if they change their mind + - No menu options shown (install → configure → exit) + - Clear progress messages throughout installation - **Improved menu flow for viewing target details** - "View target details" moved from main menu option 6 to sub-menu under "List all backup targets" - After listing targets, users can choose: diff --git a/pbs-client-installer.sh b/pbs-client-installer.sh index 2cb2708..b22ef0a 100755 --- a/pbs-client-installer.sh +++ b/pbs-client-installer.sh @@ -2149,11 +2149,27 @@ main() { fi else # PBS client not installed + info "Proxmox Backup Client is not installed on this system" + echo + echo "This script will:" + echo " 1. Install Proxmox Backup Client" + echo " 2. Configure your first backup target" + echo " 3. Set up automated backups" + echo + + PROCEED=$(prompt "Do you want to proceed with installation? (yes/no)" "yes") + + if [ "$PROCEED" != "yes" ]; then + info "Installation cancelled" + exit 0 + fi + + echo info "Installing Proxmox Backup Client..." install_pbs_client echo - info "Let's create your first backup target!" + info "Installation complete! Now let's create your first backup target!" echo TARGET_NAME=$(prompt "Enter name for first target (e.g., 'primary', 'local', 'offsite')" "default")