Remove Quick Actions menu from agent status display
Removed interactive Quick Actions (start/stop/restart/logs/version) from agent status screen. These were redundant with existing menu options and cluttered the status display. Status screen now shows info and returns to menu immediately. Log analysis will be handled in the troubleshoot script instead, which will comprehensively check all Acronis logs for issues. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -251,82 +251,4 @@ if [ -d "/var/lib/Acronis" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
press_enter
|
||||||
# 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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user