diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/squid/squid.install | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/squid/squid.install')
-rw-r--r-- | community/squid/squid.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/community/squid/squid.install b/community/squid/squid.install new file mode 100644 index 000000000..a7c76d87a --- /dev/null +++ b/community/squid/squid.install @@ -0,0 +1,26 @@ +post_install() { + if [ -z "$(grep ^proxy: /etc/group)" ]; then + groupadd -g 15 proxy &>/dev/null + fi + + id proxy &>/dev/null || \ + useradd -u 15 -g proxy -d /var/empty proxy + + chown proxy.proxy var/{cache,log}/squid + +# cat << EOF +#Release notes: http://www.squid-cache.org/Versions/v3/3.1/RELEASENOTES.html +#EOF +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + userdel proxy &> /dev/null + if [ ! -z "$(grep ^proxy: /etc/group)" ]; then + groupdel proxy &>/dev/null + fi +} + |