From d4ab744834c3d278041abdc4669de96d462bc9c6 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Sun, 15 Dec 2024 21:55:30 -0500 Subject: got invidious working --- files/usr/local/libexec/invidious-update.invidious_server | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files/usr/local/libexec/invidious-update.invidious_server') diff --git a/files/usr/local/libexec/invidious-update.invidious_server b/files/usr/local/libexec/invidious-update.invidious_server index b89b4bf..bbc5e72 100644 --- a/files/usr/local/libexec/invidious-update.invidious_server +++ b/files/usr/local/libexec/invidious-update.invidious_server @@ -34,7 +34,7 @@ invidious_dir=$2 cd "$invidious_dir" -su -m "$invidious_user" -c 'git fetch' +as_invidious 'git fetch' local_rev=$(as_invidious 'git rev-parse HEAD') upstream_rev=$(as_invidious 'git rev-parse "@{u}"') @@ -45,4 +45,4 @@ else echo "invidious already up to date at rev ${local_rev}" fi -service invidious restart +service invidious status 2>/dev/null && service invidious restart -- cgit v1.2.3