From b3c17997f6a6b809e5e97d8563d6e6f1cd20a137 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Mon, 16 Dec 2024 09:02:59 -0500 Subject: restart invidious when restarting sighelper --- files/usr/local/libexec/invidious-sighelper-update.invidious_server | 3 ++- files/usr/local/libexec/invidious-update.invidious_server | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'files') 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 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 -- cgit v1.2.3