home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 10 Feb 2020 19:40:00 +0000 (20:40 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 10 Feb 2020 19:40:00 +0000 (20:40 +0100)
buster/apt-mark/peertube
buster/setup_scripts/setup_peertube.sh

index 676bda917193ac01e4d61043f8e3d840b71f29af..9a08c8d5022021f2c6f44a86c005e610b6aa44db 100644 (file)
@@ -5,6 +5,8 @@ postgresql-contrib
 openssl
 redis-server
 python-dev
+certbot
+python3-certbot-nginx
 # only needed for setup
 g++
 make
index 77c9302af50373f77d2a1a7b347c0e252b259cdf..f57ec40b9b02b9d30ae274511c70a772424c8d1d 100755 (executable)
@@ -63,10 +63,12 @@ sed -i "s/password: 'peertube'/password: '${db_pw}'/g" config/production.yaml
 cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/sites-available/peertube
 sed -i "s/peertube.example.com/${domain}/g" /etc/nginx/sites-available/peertube
 ln -s /etc/nginx/sites-available/peertube /etc/nginx/sites-enabled/peertube
-service nginx restart
 
 # Configure systemd and start PeerTube through it.
 cp /var/www/peertube/peertube-latest/support/systemd/peertube.service /etc/systemd/system/
 systemctl daemon-reload
 systemctl enable peertube
 systemctl start peertube
+
+# Restart NGINX.
+service nginx restart