From d71bcfce59ceac8c5cb9d96ef33de10742d161aa Mon Sep 17 00:00:00 2001 From: Alexander Marx Date: Wed, 17 Sep 2014 15:52:45 +0200 Subject: [PATCH] squid-accounting: set right permissions of html directory for graphs and logo --- lfs/squid-accounting | 2 +- src/paks/squid-accounting/install.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lfs/squid-accounting b/lfs/squid-accounting index 6f0fdc3b2d..0dca63f751 100644 --- a/lfs/squid-accounting +++ b/lfs/squid-accounting @@ -15,7 +15,7 @@ THISAPP = squid-accounting-$(VER) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = squid-accounting -PAK_VER = 2 +PAK_VER = 3 DEPS = "perl-DBI perl-DBD-SQLite perl-File-ReadBackwards perl-PDF-API2 sendEmail" diff --git a/src/paks/squid-accounting/install.sh b/src/paks/squid-accounting/install.sh index f20b85f464..835055ad5c 100644 --- a/src/paks/squid-accounting/install.sh +++ b/src/paks/squid-accounting/install.sh @@ -31,5 +31,8 @@ if [ ! -f /var/ipfire/accounting/acct.db ]; then chmod 644 /var/ipfire/accounting/acct.db chown nobody.nobody /var/ipfire/accounting/acct.db fi +#Set right permissions of directory /srv/web/ipfire/html/accounting +chown -R nobody.nobody /srv/web/ipfire/html/accounting +chmod 755 -R /srv/web/ipfire/html/accounting rm -f /var/ipfire/accounting/dbinstall.pl /usr/local/bin/update-lang-cache -- 2.39.5