From c8555c8c31259af5b0252abb9314fb6564b768a3 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 10 Feb 2020 20:40:00 +0100 Subject: [PATCH] Fix. --- buster/apt-mark/peertube | 2 ++ buster/setup_scripts/setup_peertube.sh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/buster/apt-mark/peertube b/buster/apt-mark/peertube index 676bda9..9a08c8d 100644 --- a/buster/apt-mark/peertube +++ b/buster/apt-mark/peertube @@ -5,6 +5,8 @@ postgresql-contrib openssl redis-server python-dev +certbot +python3-certbot-nginx # only needed for setup g++ make diff --git a/buster/setup_scripts/setup_peertube.sh b/buster/setup_scripts/setup_peertube.sh index 77c9302..f57ec40 100755 --- a/buster/setup_scripts/setup_peertube.sh +++ b/buster/setup_scripts/setup_peertube.sh @@ -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 -- 2.30.2