main/{haproxy,squid}: Replace .pre-upgrade with link to .pre-install.

.pre-upgrade content was the same as .pre-install, so no change in .apk,
thus no pkgrel bump.
This commit is contained in:
Przemyslaw Pawelczyk 2016-06-28 20:41:45 +02:00 committed by Natanael Copa
parent a643ff53e5
commit 3cc3dde12d
2 changed files with 2 additions and 21 deletions

View File

@ -1,13 +0,0 @@
#!/bin/sh
addgroup -S haproxy 2>/dev/null
adduser -S -D -H -h /var/lib/haproxy -s /bin/false \
-G haproxy -g haproxy haproxy 2>/dev/null
# move config to new location
if [ -e /etc/haproxy.cfg ] && ! [ -e /etc/haproxy/haproxy.cfg ]; then
mkdir -p /etc/haproxy
mv /etc/haproxy.cfg /etc/haproxy/haproxy.cfg
fi
exit 0

View File

@ -0,0 +1 @@
haproxy.pre-install

View File

@ -1,8 +0,0 @@
#!/bin/sh
addgroup -S squid 2>/dev/null
adduser -S -D -h /var/cache/squid -G squid -g squid squid 2>/dev/null
addgroup -S winbind 2>/dev/null
addgroup squid winbind 2>/dev/null
exit 0

View File

@ -0,0 +1 @@
squid.pre-install