aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/libexec/invidious-update.invidious_server
diff options
context:
space:
mode:
Diffstat (limited to 'files/usr/local/libexec/invidious-update.invidious_server')
-rw-r--r--files/usr/local/libexec/invidious-update.invidious_server2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/usr/local/libexec/invidious-update.invidious_server b/files/usr/local/libexec/invidious-update.invidious_server
index bbc5e72..eb6fcbd 100644
--- a/files/usr/local/libexec/invidious-update.invidious_server
+++ b/files/usr/local/libexec/invidious-update.invidious_server
@@ -41,8 +41,8 @@ upstream_rev=$(as_invidious 'git rev-parse "@{u}"')
if [ "$local_rev" != "$upstream_rev" ]; then
echo "updating invidious to rev ${upstream_rev}"
as_invidious 'git pull --ff-only && shards install --production && crystal build src/invidious.cr --release'
+ service invidious status 2>/dev/null && service invidious restart
else
echo "invidious already up to date at rev ${local_rev}"
fi
-service invidious status 2>/dev/null && service invidious restart