Package: quake-server
Version: 2
Severity: important
Tags: patch
Dear Maintainer,
quake-server does neither install nor purge properly on systems
without shadow password because usermod gives an error for its
e option in this case. Postinst nad postrm scripts could be
modified to cope with this.
Regards,
Stephan
diff --git a/debian/quake-server.postinst b/debian/quake-server.postinst
index e0319b3..c241c8b 100644
--- a/debian/quake-server.postinst
+++ b/debian/quake-server.postinst
@@ -11,7 +11,11 @@ case "$1" in
--ingroup games --force-badname quake-server
fi
# Unlock account, if it was locked by our postrm
- usermod -U -e '' quake-server
+ if [ -f /etc/shadow ]; then
+ usermod -U -e '' quake-server
+ else
+ usermod -U quake-server
+ fi
install -d /var/games
install -d -o quake-server -g games /var/games/quake-server
;;
diff --git a/debian/quake-server.postrm b/debian/quake-server.postrm
index 3f84523..220bc81 100644
--- a/debian/quake-server.postrm
+++ b/debian/quake-server.postrm
@@ -6,7 +6,11 @@ set -e
if [ "$1" = "purge" ] ; then
# Lock account on purge
- usermod -L -e 1 quake-server
+ if [ -f /etc/shadow ]; then
+ usermod -L -e 1 quake-server
+ else
+ usermod -L quake-server
+ fi
rm -r /var/games/quake-server
rmdir --ignore-fail-on-non-empty /var/games
fi
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Shell: /bin/sh linked to /bin/dash
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]