From 7436b1bac461a6bf71f4329b49d26ee5740ae3ee Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 9 Aug 2019 20:03:36 +0200 Subject: Configure scrapy log --- install.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 0005cd2..7c1deeb 100755 --- a/install.sh +++ b/install.sh @@ -32,9 +32,11 @@ DB_NAME=commonnet echo " * Creating conf files" mkdir -p /var/log/django/ +mkdir -p /var/log/scrapy/ mkdir -p /var/lib/uwsgi/run chown -R www-data:www-data /var/lib/uwsgi/run chown -R www-data:www-data /var/log/django/ +cp conf/scrapy.logrotate /etc/logrotate.d/scrapy sed -s "s|#URL#|$URL|g;s|#PASSWORD#|$PASSWORD|g;\ s|RESPONSIBLE_EMAIL = None|RESPONSIBLE_EMAIL = '$RESPONSIBLE_EMAIL'|;" \ -- cgit v1.2.3