summaryrefslogtreecommitdiff
path: root/etc/debian-edu
diff options
context:
space:
mode:
Diffstat (limited to 'etc/debian-edu')
-rw-r--r--etc/debian-edu/itzks.config6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/debian-edu/itzks.config b/etc/debian-edu/itzks.config
index cb22807..5d2c6ce 100644
--- a/etc/debian-edu/itzks.config
+++ b/etc/debian-edu/itzks.config
@@ -24,7 +24,7 @@ NETLOGONSERVER="tjener"
### internet settings
###
-HOSTNAME=`hostname`
+HOSTNAME=`hostname -s`
DOMAIN=`hostname -d`
###
@@ -117,7 +117,7 @@ function cron_header () {
function check_host () {
- HOST=`uname -n`
+ HOST=`hostname -s`
ALLOWED_HOSTS="$1"
if ! echo $ALLOWED_HOSTS | grep $HOST >/dev/null; then
echo -e "\nITZkS script "`basename $0`" is not for: $HOST.$DOMAIN\nPossible hosts are: $ALLOWED_HOSTS\n"
@@ -128,7 +128,7 @@ function check_host () {
function abort_on_host () {
- HOST=`uname -n`
+ HOST=`hostname -s`
FORBIDDEN_HOSTS="$1"
if echo $FORBIDDEN_HOSTS | grep $HOST >/dev/null; then
echo -e "\nITZkS script "`basename $0`" is forbidden on: $HOST.$DOMAIN\n"