From 3f3db571681bf383e5d87af0f5903dd53fc0ff7a Mon Sep 17 00:00:00 2001 From: Xe Date: Thu, 28 Apr 2022 03:22:06 +0000 Subject: update preflight Signed-off-by: Xe --- run/robocadey.preflight.sh | 7 +++++-- run/robocadey.service.in | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'run') diff --git a/run/robocadey.preflight.sh b/run/robocadey.preflight.sh index 7fcb2e9..04be027 100644 --- a/run/robocadey.preflight.sh +++ b/run/robocadey.preflight.sh @@ -1,8 +1,11 @@ #!/usr/bin/env bash -rm tweet_minimal.json sed 's/window.YTD.tweet.part0 = //' < tweets.js \ | jq '.[] | [ select(.tweet.retweeted == false) ] | .[].tweet.full_text' \ | sed -r 's/\s*\.?@[A-Za-z0-9_]+\s*//g' \ | grep -v 'RT:' \ - | jq --slurp . > tweet_minimal.json + | jq --slurp . \ + | jq -r .[] \ + | sed -e 's!http[s]\?://\S*!!g' \ + | sed '/^$/d' \ + > tweets.txt diff --git a/run/robocadey.service.in b/run/robocadey.service.in index 1ed58cf..77327b9 100644 --- a/run/robocadey.service.in +++ b/run/robocadey.service.in @@ -2,7 +2,6 @@ Description=Robo-Cadey [Service] -ExecStartPre=@preflight@/bin/preflight ExecStartPre=@robocadey@/bin/robocadey --read-from=./robocadey.gob ExecStart=@robocadey@/bin/robocadey StateDirectory=xeserv.robocadey -- cgit v1.2.3