From b35696d557345db1664db7c6eda04631484769f4 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 2 Nov 2012 11:18:05 +0100 Subject: =?UTF-8?q?/bin/passwd:=20To=20users=20with=20uidNumber=20>=3D=201?= =?UTF-8?q?000=20->=20show=20the=20GOsa=C2=B2=20link.=20To=20users=20with?= =?UTF-8?q?=20uidNumber=20<=201000=20->=20wrap=20around=20GNU=20passwd=20b?= =?UTF-8?q?inary.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/passwd | 11 ++++++++--- debian/changelog | 8 ++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/bin/passwd b/bin/passwd index 60ac87f..f18fc3d 100755 --- a/bin/passwd +++ b/bin/passwd @@ -1,4 +1,9 @@ -#!/bin/sh +#!/bin/bash -echo "Please visit https://www/gosa to set your network password for Debian Edu / Skolelinux. THANKS!" -exit 0 \ No newline at end of file +if [ `id -u` -ge 1000 ]; then + echo "Please visit https://www/gosa to set your network password for Debian Edu / Skolelinux. THANKS!" +else + passwd.gnu $@ +fi + +exit 0 diff --git a/debian/changelog b/debian/changelog index 25e4c96..2ef2116 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +itzks-systems (2012.11.02.3) UNRELEASED; urgency=low + + * /bin/passwd: + + To users with uidNumber >= 1000 -> show the GOsa² link. To users with + uidNumber < 1000 -> wrap around GNU passwd binary. + + -- Mike Gabriel Fri, 02 Nov 2012 11:16:33 +0100 + itzks-systems (2012.11.02.2) squeeze-backports; urgency=low * Rename of bin:package: itzks-systems-config -> itzks-systems-common. -- cgit v1.2.3