summaryrefslogtreecommitdiff
path: root/debian/tests/general
blob: c19626b1ce78c632802e0666cbb9ebe272aaebc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -exu

PHPVERSION=$(phpquery -V | head -1)

rm /etc/nginx/sites-enabled/default
sed 's/fastcgi_pass unix:\/var\/run\/php\/php[0-9.]\+-fpm.sock/fastcgi_pass unix:\/var\/run\/php\/php'"$PHPVERSION"'-fpm.sock/' \
	/usr/share/doc/rss-bridge/examples/nginx.conf \
	> /etc/nginx/sites-available/rss-bridge
ln -s ../sites-available/rss-bridge /etc/nginx/sites-enabled/rss-bridge

systemctl restart nginx

curl --silent localhost | grep '<title>RSS-Bridge</title>'