aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/libexec/invidious-sighelper-update.invidious_server
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-12-16 09:02:59 -0500
committerCullum Smith <cullum@sacredheartsc.com>2024-12-16 09:02:59 -0500
commitb3c17997f6a6b809e5e97d8563d6e6f1cd20a137 (patch)
tree032a9dc69e837c015c3979ed5915a5c8ca1f2f23 /files/usr/local/libexec/invidious-sighelper-update.invidious_server
parent7091221647aa2724fa5ebd1c4c66d8f3483aac70 (diff)
downloadinfrastructure-b3c17997f6a6b809e5e97d8563d6e6f1cd20a137.tar.gz
restart invidious when restarting sighelper
Diffstat (limited to 'files/usr/local/libexec/invidious-sighelper-update.invidious_server')
-rw-r--r--files/usr/local/libexec/invidious-sighelper-update.invidious_server3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/usr/local/libexec/invidious-sighelper-update.invidious_server b/files/usr/local/libexec/invidious-sighelper-update.invidious_server
index 0aacbb1..3f928aa 100644
--- a/files/usr/local/libexec/invidious-sighelper-update.invidious_server
+++ b/files/usr/local/libexec/invidious-sighelper-update.invidious_server
@@ -41,8 +41,9 @@ upstream_rev=$(as_invidious 'git rev-parse "@{u}"')
if [ "$local_rev" != "$upstream_rev" ]; then
echo "updating inv_sig_helper to rev ${upstream_rev}"
as_invidious 'git pull --ff-only && cargo build --release'
+ service inv_sig_helper status 2>/dev/null && service inv_sig_helper restart
+ service invidious status 2>/dev/null && service invidious restart
else
echo "inv_sig_helper already up to date at rev ${local_rev}"
fi
-service inv_sig_helper status 2>/dev/null && service inv_sig_helper restart