Skip to content

Commit

Permalink
Update invidious_update.sh
Browse files Browse the repository at this point in the history
- Fix add external_port: to config.yml
  • Loading branch information
tmiland committed Jun 29, 2019
1 parent 3679f55 commit d371b47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invidious_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

#------------------------------------------------------------------------------#
#
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d371b47

Please sign in to comment.