Skip to content

Commit

Permalink
FixMinor Typos Preventing Build and Config
Browse files Browse the repository at this point in the history
Indent error python and missing directory error (build).  Enable encoder site by default.
  • Loading branch information
mptmg authored and JedMeister committed Oct 29, 2018
1 parent eb997d1 commit fe9f473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion conf.d/main
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ EOF
# more Apache conf
a2dissite 000-default
a2ensite youphptube
a2ensite encoder
a2enmod proxy_wstunnel
a2enmod rewrite

Expand All @@ -31,7 +32,7 @@ git clone --depth=1 https://github.com/DanielnetoDotCom/YouPHPTube.git $WEBROOT
mkdir $WEBROOT/videos

# clone encoder repo and create required dirs
git clone --depth=1 https://github.com/DanielnetoDotCom/YouPHPTube-Encoder
git clone --depth=1 https://github.com/DanielnetoDotCom/YouPHPTube-Encoder $ENCROOT
mkdir $ENCROOT/videos

# Move Config File Into Place
Expand Down
4 changes: 2 additions & 2 deletions overlay/usr/lib/inithooks/bin/youphptube.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ def main():
m.execute('UPDATE encoder.streamers SET siteURL=\"%s\" WHERE id=2;' % urlfrontend)

"""Configure YouPHPTube To Use Local Encoder"""
m.execute('UPDATE yphptube.configurations SET encoderURL=\"%s\" WHERE id=1;' % urlencoder)
m.execute('UPDATE yphptube.configurations SET encoderURL=\"%s\" WHERE id=1;' % urlencoder)

"""Lock Down Encoder To Specified Streamer Domain"""
m.execute('UPDATE encoder.configurations SET allowedStreamersURL=\"%s\" WHERE id=1;' % urlfrontend)
m.execute('UPDATE encoder.configurations SET allowedStreamersURL=\"%s\" WHERE id=1;' % urlfrontend)

"""Replace URL In YouPHPTube Config File"""
system('sed', '-i', "s/.*webSiteRootURL.*/\$global\[\'webSiteRootURL\'\] = \'%s\'\;/g" % urlfrontend,
Expand Down

0 comments on commit fe9f473

Please sign in to comment.