2021-01-06 17:46:47 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
2021-01-07 15:48:14 +00:00
|
|
|
sudo mv /tmp/fullchain.pem /var/www/wallabag/fullchain.pem
|
|
|
|
sudo mv /tmp/privkey.pem /var/www/wallabag/privkey.pem
|
|
|
|
chown www-data:www-data /var/www/wallabag/{fullchain,privkey}.pem
|
2021-01-06 17:46:47 +00:00
|
|
|
sudo mv /tmp/wallabag-nginx.conf \
|
|
|
|
/etc/nginx/sites-available/wallabag.conf
|
|
|
|
sudo ln -s /etc/nginx/sites-available/wallabag.conf \
|
|
|
|
/etc/nginx/sites-enabled/
|
|
|
|
sudo unlink /etc/nginx/sites-enabled/default
|
|
|
|
sudo systemctl enable nginx
|