From 0a17554dbd37544528fac2386df350bb65bc8012 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Thu, 30 Nov 2017 20:52:24 +0000
Subject: [PATCH] Move peertube to a different port to avoid clashes

---
 src/freedombone-app-peertube | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedombone-app-peertube b/src/freedombone-app-peertube
index 6ce413769..fb7f2ba5d 100755
--- a/src/freedombone-app-peertube
+++ b/src/freedombone-app-peertube
@@ -38,7 +38,7 @@ PEERTUBE_CODE=
 PEERTUBE_REPO="https://github.com/Chocobozzz/PeerTube"
 PEERTUBE_COMMIT='fef2c7164e025b12a64185dbab058ef4129733c6'
 PEERTUBE_ONION_PORT=8136
-PEERTUBE_PORT=9000
+PEERTUBE_PORT=9004
 PEERTUBE_DIR=/etc/peertube
 
 peertube_variables=(PEERTUBE_DOMAIN_NAME
@@ -566,7 +566,7 @@ function install_peertube {
     echo 'StandardError=syslog' >> /etc/systemd/system/peertube.service
     echo 'SyslogIdentifier=peertube' >> /etc/systemd/system/peertube.service
     echo 'Restart=always' >> /etc/systemd/system/peertube.service
-    echo "Environment=NODE_ENV=production PORT=${PEERTUBE_PORT}" >> /etc/systemd/system/peertube.service
+    echo "Environment=NODE_ENV=production" >> /etc/systemd/system/peertube.service
     echo '' >> /etc/systemd/system/peertube.service
     echo '[Install]' >> /etc/systemd/system/peertube.service
     echo 'WantedBy=multi-user.target' >> /etc/systemd/system/peertube.service
-- 
GitLab