Skip to content

Commit

Permalink
Add if condition to signature server
Browse files Browse the repository at this point in the history
- Added if condition to signature server
  • Loading branch information
tmiland committed Oct 11, 2024
1 parent 98f135b commit 48f7e61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion invidious_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,11 @@ install_inv_sig_helper() {
# Copy service file to systemd folder
cp -rp $USER_DIR/inv_sig_helper/inv_sig_helper.service /etc/systemd/system/
# Add socket to config
${SUDO} echo "signature_server: /home/invidious/tmp/inv_sig_helper.sock" >> $USER_DIR/invidious/config/config.yml
if ! grep -oq "signature_server:" $USER_DIR/invidious/config/config.yml
then
${SUDO} echo "signature_server:" >> $USER_DIR/invidious/config/config.yml
fi
${SUDO} sed -i "s/signature_server: .*/signature_server: \/home\/invidious\/tmp\/inv_sig_helper\.sock/" $USER_DIR/invidious/config/config.yml
if [[ ! -d /home/invidious/tmp ]]
then
${SUDO} mkdir -p /home/invidious/tmp
Expand Down

0 comments on commit 48f7e61

Please sign in to comment.