diff --git a/modules/backup/acronis-agent-status.sh b/modules/backup/acronis-agent-status.sh index 334c853..3183e98 100755 --- a/modules/backup/acronis-agent-status.sh +++ b/modules/backup/acronis-agent-status.sh @@ -251,82 +251,4 @@ if [ -d "/var/lib/Acronis" ]; then fi echo "" - -# Quick Actions -echo -e "${BOLD}Quick Actions:${NC}" -echo "" -echo -e " ${CYAN}1)${NC} Start All Services" -echo -e " ${CYAN}2)${NC} Stop All Services" -echo -e " ${CYAN}3)${NC} Restart All Services" -echo -e " ${CYAN}4)${NC} View Live Logs" -echo -e " ${CYAN}5)${NC} Check Agent Version" -echo "" -echo -e " ${RED}0)${NC} Return to Menu" -echo "" -echo -n "Select action (or press Enter to return): " -read -r action - -case "$action" in - 1) - echo "" - echo "Starting all Acronis services..." - systemctl start aakore - systemctl start acronis_mms - systemctl start acronis_schedule - systemctl start active-protection - echo "" - print_success "Services started" - sleep 2 - exec "$0" - ;; - 2) - echo "" - echo "Stopping all Acronis services..." - systemctl stop active-protection - systemctl stop acronis_schedule - systemctl stop acronis_mms - systemctl stop aakore - echo "" - print_success "Services stopped" - sleep 2 - exec "$0" - ;; - 3) - echo "" - echo "Restarting all Acronis services..." - systemctl restart aakore - systemctl restart acronis_mms - systemctl restart acronis_schedule - systemctl restart active-protection - echo "" - print_success "Services restarted" - sleep 2 - exec "$0" - ;; - 4) - if [ -f "/var/lib/Acronis/BackupAndRecovery/MMS/mms.0.log" ]; then - echo "" - echo "Showing live log (Ctrl+C to exit)..." - sleep 1 - tail -f /var/lib/Acronis/BackupAndRecovery/MMS/mms.0.log - else - print_error "Log file not found" - press_enter - fi - ;; - 5) - echo "" - echo -e "${BOLD}Agent Version Information:${NC}" - if command -v /usr/lib/Acronis/BackupAndRecovery/aakore &>/dev/null; then - /usr/lib/Acronis/BackupAndRecovery/aakore --version 2>/dev/null || echo "Version info not available" - else - echo "Agent binary not found" - fi - echo "" - press_enter - ;; - *) - # Return to menu - exit 0 - ;; -esac +press_enter