aboutsummaryrefslogtreecommitdiffstats
path: root/priv
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-11-06 15:16:39 -0600
committerTristan Sloughter <[email protected]>2014-11-06 15:16:39 -0600
commit8774f34248fb2937f24e6e3c303e1e18e8173bd2 (patch)
tree8037c56f291528225d07592264ce4a20b629c581 /priv
parent75b44fa44ef70e078dd450bf68bfaea4d48bf4e3 (diff)
downloadrelx-8774f34248fb2937f24e6e3c303e1e18e8173bd2.tar.gz
relx-8774f34248fb2937f24e6e3c303e1e18e8173bd2.tar.bz2
relx-8774f34248fb2937f24e6e3c303e1e18e8173bd2.zip
use short name for -sname and longname of -name in extended script
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