From: Alexander Marx Date: Wed, 6 Aug 2014 11:41:54 +0000 (+0200) Subject: squid-accounting: change permissions and reread languagefiles on uninstall X-Git-Tag: v2.15-core82~6^2~15^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18a66b95dff02a0962b6e85cdcbfa8021dcc7c53;p=people%2Fpmueller%2Fipfire-2.x.git squid-accounting: change permissions and reread languagefiles on uninstall --- diff --git a/src/paks/squid-accounting/install.sh b/src/paks/squid-accounting/install.sh index ec37185831..f20b85f464 100644 --- a/src/paks/squid-accounting/install.sh +++ b/src/paks/squid-accounting/install.sh @@ -28,7 +28,8 @@ 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 rm -f /var/ipfire/accounting/dbinstall.pl /usr/local/bin/update-lang-cache diff --git a/src/paks/squid-accounting/uninstall.sh b/src/paks/squid-accounting/uninstall.sh index 826df18e7d..841124bf3c 100644 --- a/src/paks/squid-accounting/uninstall.sh +++ b/src/paks/squid-accounting/uninstall.sh @@ -24,3 +24,4 @@ . /opt/pakfire/lib/functions.sh make_backup ${NAME} remove_files +/usr/local/bin/update-lang-cache