aboutsummaryrefslogtreecommitdiffstats
path: root/priv
diff options
context:
space:
mode:
Diffstat (limited to 'priv')
-rw-r--r--priv/templates/extended_bin.dtl9
1 files changed, 8 insertions, 1 deletions
diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl
index ec4a8f3..6bf151a 100644
--- a/priv/templates/extended_bin.dtl
+++ b/priv/templates/extended_bin.dtl
@@ -117,7 +117,14 @@ case $NAME in
;;
*)
# Add @hostname
- NAME=$NAME@`hostname -f`
+ case $NAME_TYPE in
+ sname)
+ NAME=$NAME@`hostname -s`
+ ;;
+ name)
+ NAME=$NAME@`hostname -f`
+ ;;
+ esac
;;
esac