mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
31 lines
473 B
Text
31 lines
473 B
Text
|
post_install() {
|
||
|
if [ ! `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 for version 2.7:
|
||
|
http://www.squid-cache.org/Versions/v2/2.7/RELEASENOTES.html
|
||
|
|
||
|
EOF
|
||
|
}
|
||
|
|
||
|
post_upgrade() {
|
||
|
post_install $1
|
||
|
}
|
||
|
|
||
|
pre_remove() {
|
||
|
userdel proxy &> /dev/null
|
||
|
groupdel proxy &> /dev/null
|
||
|
}
|
||
|
|
||
|
op=$1
|
||
|
shift
|
||
|
|
||
|
$op $*
|