debian/openarena-server.postinst
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | #DEBHELPER# |
| 6 | |
| 7 | # Remove after Debian 14 && Ubuntu 28.04 |
| 8 | if [ "$1" = configure ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt 0.8.8+dfsg-12 && command -v usermod >/dev/null 2>&1; then |
| 9 | # Older versions didn't necessarily create the system user locked |
| 10 | if [ -f /etc/shadow ]; then |
| 11 | usermod -L -e 1 Debian-openarena |
| 12 | else |
| 13 | usermod -L Debian-openarena |
| 14 | fi |
| 15 | fi |