summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-04-08 13:23:25 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-04-08 13:23:25 +0200
commit8a3b0f7dc2b170e99edb2fbf4509268c86c0a999 (patch)
tree20a74131f0cbdd264fbe70b8201c0d854567950f
parentb7f69f8e8a680ebab841255662f82d00416d61c6 (diff)
downloaditzks-systems-8a3b0f7dc2b170e99edb2fbf4509268c86c0a999.tar.gz
itzks-systems-8a3b0f7dc2b170e99edb2fbf4509268c86c0a999.tar.bz2
itzks-systems-8a3b0f7dc2b170e99edb2fbf4509268c86c0a999.zip
etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page: Use -n option for checking if a string is of non-zero length.
-rwxr-xr-xetc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page2
1 files changed, 1 insertions, 1 deletions
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