17 lines
477 B
Bash
17 lines
477 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
sudo mv /tmp/freshrss.conf /etc/nginx/sites-available/freshrss.conf
|
||
|
sudo ln -s \
|
||
|
/etc/nginx/sites-available/freshrss.conf \
|
||
|
/etc/nginx/sites-enabled/
|
||
|
sudo unlink /etc/nginx/sites-enabled/default
|
||
|
|
||
|
sudo mkdir -p /var/www/freshrss
|
||
|
sudo mv /tmp/fullchain.pem /var/www/freshrss/fullchain.pem
|
||
|
sudo mv /tmp/privkey.pem /var/www/freshrss/privkey.pem
|
||
|
chown www-data:www-data /var/www/freshrss/{fullchain,privkey}.pem
|
||
|
|
||
|
sudo systemctl enable nginx
|