From 8a3b0f7dc2b170e99edb2fbf4509268c86c0a999 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 8 Apr 2020 13:23:25 +0200 Subject: etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page: Use -n option for checking if a string is of non-zero length. --- .../60-itzks-systems-roamingworkstation_disable-welcome-page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page b/etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page index 3f7a863..0225d49 100755 --- a/etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page +++ b/etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page @@ -12,7 +12,7 @@ if [ -e /etc/debian-edu/config ] ; then . /etc/debian-edu/config fi -if [ "$GETDEFAULTHOMEPAGE" ] && +if [ -n "$GETDEFAULTHOMEPAGE" ] && echo "$PROFILE" | egrep -q 'Main-Server|Workstation|Roaming-Workstation|LTSP-Server|Minimal' ; then host="$(echo $GETDEFAULTHOMEPAGE | sed -re 's@[^:]+://([^/]+)/.*@\1@')" if [ "x$host" = "xwww" ] || [ "x$host" = "xwww.intern" ]; then -- cgit v1.2.3