diff options
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 |