Skip to content
Permalink
Browse files

FixMinor Typos Preventing Build and Config

Indent error python and missing directory error (build).  Enable encoder site by default.
  • Loading branch information
MPTMG authored and JedMeister committed Oct 18, 2018
1 parent eb997d1 commit fe9f4736c504979f670403431f332778eb148142
Showing with 4 additions and 3 deletions.
  1. +2 −1 conf.d/main
  2. +2 −2 overlay/usr/lib/inithooks/bin/youphptube.py
@@ -23,6 +23,7 @@ EOF
# more Apache conf
a2dissite 000-default
a2ensite youphptube
a2ensite encoder
a2enmod proxy_wstunnel
a2enmod rewrite

@@ -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
@@ -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,

0 comments on commit fe9f473

Please sign in to comment.
You can’t perform that action at this time.