diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 12:14:37 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-02 12:14:37 +0900 |
| commit | 976a2d00fba046c47aa841f32bb19270214aedcc (patch) | |
| tree | 1ba17d7d23b492f19d303872d8ad99ac59574614 /ar/.local/bin/statusbar/sb-ylog | |
| parent | 6ba20504b61690c42a86b4be9ed125aaf2818ec9 (diff) | |
Diffstat (limited to 'ar/.local/bin/statusbar/sb-ylog')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-ylog | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ar/.local/bin/statusbar/sb-ylog b/ar/.local/bin/statusbar/sb-ylog index 0a03738..e1b67e5 100755 --- a/ar/.local/bin/statusbar/sb-ylog +++ b/ar/.local/bin/statusbar/sb-ylog @@ -17,11 +17,11 @@ mkdir -p "$CACHE_DIR" export SSH_AUTH_SOCK="/run/user/$(id -u)/gnupg/S.gpg-agent.ssh" fetch_logs() { - us_today=$(TZ=America/New_York LC_TIME=C date +%d/%b) - us_yesterday=$(TZ=America/New_York LC_TIME=C date -d 'yesterday' +%d/%b) + 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" \ - 2>/dev/null | grep -E "$us_today|$us_yesterday" | grep -E '[0-9]{2}:[0-9]{2}:[0-9]{2} ' | grep -v '59\.19\.56\.8' | sort -u + 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 } update() { |
