blob: 5de764bd4aac1a4e07e46e781594895e329b7242 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
post_upgrade(){
echo post_upgrade "$@"
oldver="$2"
if [[ $(vercmp "$oldver" 2018-7) -lt 0 ]]
then
cat << 'MSG'
Attempting to remove pacserve user and group created by previous version of
Pacserve. If this fails, run the following commands as root then re-install
the pacserve package:
systemctl stop pacserve.service
userdel pacserve
groupdel pacserve
MSG
getent passwd pacserve >/dev/null 2>&1 && userdel pacserve
getent group pacserve >/dev/null 2>&1 && groupdel pacserve
fi
}
|