mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
27 lines
532 B
Text
27 lines
532 B
Text
|
post_install() {
|
||
|
if [ -z "$(grep ^proxy: /etc/group)" ]; then
|
||
|
usr/sbin/groupadd -g 15 proxy &>/dev/null
|
||
|
fi
|
||
|
|
||
|
id proxy &>/dev/null || \
|
||
|
usr/sbin/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() {
|
||
|
usr/sbin/userdel proxy &> /dev/null
|
||
|
if [ ! -z "$(grep ^proxy: /etc/group)" ]; then
|
||
|
usr/sbin/groupdel proxy &>/dev/null
|
||
|
fi
|
||
|
}
|
||
|
|