diff options
author | Cullum Smith <cullum@sacredheartsc.com> | 2024-12-15 21:55:30 -0500 |
---|---|---|
committer | Cullum Smith <cullum@sacredheartsc.com> | 2024-12-15 21:55:30 -0500 |
commit | d4ab744834c3d278041abdc4669de96d462bc9c6 (patch) | |
tree | 9824fb23fd9d64d5d7b141d759554eabd296431b /files/usr/local/libexec/invidious-update.invidious_server | |
parent | 3229c913f4191bfaf2619c15139310f2597cd3e0 (diff) | |
download | infrastructure-d4ab744834c3d278041abdc4669de96d462bc9c6.tar.gz |
got invidious working
Diffstat (limited to 'files/usr/local/libexec/invidious-update.invidious_server')
-rw-r--r-- | files/usr/local/libexec/invidious-update.invidious_server | 4 |
1 files changed, 2 insertions, 2 deletions
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 |