]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/paks/squid-accounting/install.sh
IDS: Call helper script when red interface gets up
[ipfire-2.x.git] / src / paks / squid-accounting / install.sh
index ec371858312664d530637db5b18f16f6b790510e..835055ad5cf7608ae461b38a9c47f2b280221230 100644 (file)
@@ -28,7 +28,11 @@ restore_backup ${NAME}
 #Generate SQLite DB if it does not exist
 if [ ! -f /var/ipfire/accounting/acct.db ]; then
        perl /var/ipfire/accounting/dbinstall.pl
-       chmod 777 /var/ipfire/accounting/acct.db
+       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