diff options
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-ylog | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ar/.local/bin/statusbar/sb-ylog b/ar/.local/bin/statusbar/sb-ylog index e1b67e5..cfca111 100755 --- a/ar/.local/bin/statusbar/sb-ylog +++ b/ar/.local/bin/statusbar/sb-ylog @@ -20,7 +20,7 @@ fetch_logs() { kr_today=$(TZ=Asia/Seoul LC_TIME=C date +%d/%b) kr_yesterday=$(TZ=Asia/Seoul LC_TIME=C date -d 'yesterday' +%d/%b) ssh -o BatchMode=yes -o ConnectTimeout=10 root@thesiah.xyz \ - "cat /var/log/nginx/diary.us.log /var/log/nginx/recordings.us.log /var/log/nginx/peertube.us.log 2>/dev/null" \ + "cat /var/log/nginx/diary.us.log /var/log/nginx/recordings.us.log /var/log/nginx/peertube.us.log /var/log/nginx/videos.us.log 2>/dev/null" \ 2>/dev/null | grep -E "$kr_today|$kr_yesterday" | grep -E '[0-9]{2}:[0-9]{2}:[0-9]{2} ' | grep -v '59\.19\.56\.8' | sort -u } @@ -68,7 +68,7 @@ case $BLOCK_BUTTON in pkill -RTMIN+21 "${STATUSBAR:-dwmblocks}" ;; 3) - notify-send "🌐 Ylog module" "- Shows new nginx log entries (diary/recordings/peertube US) + notify-send "🌐 Ylog module" "- Shows new nginx log entries (diary/recordings/peertube/videos US) - Updates every 30 minutes - Left click: show new entries & mark seen - Middle click: force refresh" |
