Package: debian-edu-config
Version: 1.818
Severity: important

Hi,

LTSP servers have PROFILE="Workstation, Thin-Client-Server" set in 
/etc/debian-edu/config after a default installation.

The hook script fails to update the hostname cause there's no matching 
case entry.

This patch seems to fix the issue (might be smarter, though):

--- a/hostname  2015-04-20 21:35:25.268888263 +0200
+++ b/hostname  2015-04-21 23:46:00.066965628 +0200
@@ -17,15 +17,14 @@
 # if moved between networks.
 if [ -r /etc/debian-edu/config ] ; then
        . /etc/debian-edu/config
-       case "$PROFILE" in
-       Workstation|Thin-Client-Server|Minimal)
-               ;;
-       *)
-               exit 0
-               ;;
-       esac
-else
+fi
+
+if echo "$PROFILE" | egrep -q 'Main-Server|Roaming-Workstation|Standalone' ; 
then
        exit 0
+       else
+               if echo "$PROFILE" | egrep -q 
'Workstation|Thin-Client-Server|Minimal' ; then
+                       :
+               fi
 fi
 
 log() {


Wolfgang

Attachment: signature.asc
Description: Digital signature

Reply via email to