blob: 660204163b08f4c6413f5f80a9a2324acb3017d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
post_install() {
if ! getent group memcached >/dev/null; then
groupadd --system memcached
fi
if ! getent passwd memcached >/dev/null; then
useradd --system -c 'memcached user' -g memcached -d / -s /bin/nologin memcached
fi
}
post_upgrade() {
post_install $1
if (( $(vercmp $2 1.4.36-1) <= 0 )); then
usermod -s /bin/nologin memcached
fi
}
|