home · contact · privacy
Add PeerTube migration scripts.
[config] / buster / setup_scripts / setup_peertube.sh
index 77c9302af50373f77d2a1a7b347c0e252b259cdf..2465cfe8ba427cb85dc19de3403bdeea3fcf1607 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 set -e
-set -x
+
 # Heavily inspired by
 # <https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md>
 # and
@@ -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