mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 02:20:11 -08:00
feat: Update log retrieval period in detailed status function to show logs from the last 7 days
This commit is contained in:
2
plex.sh
2
plex.sh
@@ -177,7 +177,7 @@ show_detailed_status() {
|
|||||||
|
|
||||||
# Show recent logs
|
# Show recent logs
|
||||||
echo -e "\n${DIM}${CYAN}┌─── Recent Service Logs ───┐${RESET}"
|
echo -e "\n${DIM}${CYAN}┌─── Recent Service Logs ───┐${RESET}"
|
||||||
echo -e "${DIM}$(journalctl -u "$PLEX_SERVICE" --no-pager -n 3 --since "5 minutes ago" 2>/dev/null | tail -3 || echo "No recent logs available")${RESET}"
|
echo -e "${DIM}$(journalctl -u "$PLEX_SERVICE" --no-pager -n 3 --since "7 days ago" 2>/dev/null | tail -3 || echo "No recent logs available")${RESET}"
|
||||||
echo -e "${DIM}${CYAN}└────────────────────────────┘${RESET}"
|
echo -e "${DIM}${CYAN}└────────────────────────────┘${RESET}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user