From d371b472ebf0b7fb7ae4b059eadf5fc13f4d16db Mon Sep 17 00:00:00 2001 From: Tommy Miland Date: Sat, 29 Jun 2019 12:16:59 +0200 Subject: [PATCH] Update invidious_update.sh - Fix add external_port: to config.yml --- invidious_update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invidious_update.sh b/invidious_update.sh index 95ebc67..203fbdd 100755 --- a/invidious_update.sh +++ b/invidious_update.sh @@ -11,7 +11,7 @@ #### Maintained by @tmiland #### ###################################################################### -version='1.3.8' # Must stay on line 14 for updater to fetch the numbers +version='1.3.9' # Must stay on line 14 for updater to fetch the numbers #------------------------------------------------------------------------------# # @@ -731,7 +731,7 @@ update_config() { /bin/cp -f $f $BPATH echo -e "${GREEN}${ARROW} Updating config.yml with new info...${NC}" # Add external_port: to config on line 13 - sed -i "13i\external_port:" "$f" > $TFILE + sed -i "11i\external_port:" "$f" > $TFILE sed "s/$OLDPASS/$NEWPASS/g; s/$OLDDBNAME/$NEWDBNAME/g; s/$OLDDOMAIN/$NEWDOMAIN/g; s/$OLDHTTPS/$NEWHTTPS/g; s/$OLDEXTERNAL/$NEWEXTERNAL/g;" "$f" > $TFILE && mv $TFILE "$f" else