blob: a7c76d87a670ec29b896f1c8b5ab2d7669f7d2bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
}
|