diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-03-01 06:31:55 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-03-01 06:31:55 +0000 |
commit | a730d607eb190887c7dd33484dd036d752d30d38 (patch) | |
tree | 1588f9295dd884beedc465820f59e7e3e10fe7ff /scripts/auto-build/auto-build-common | |
parent | 77a1b1342c5b542f8c65801f5539662c6a2c736b (diff) |
use /etc/hostname for hostname so that chroot builds are named appropriately
svn path=/trunk/; revision=10823
Diffstat (limited to 'scripts/auto-build/auto-build-common')
-rw-r--r-- | scripts/auto-build/auto-build-common | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/auto-build/auto-build-common b/scripts/auto-build/auto-build-common index 2c004316..0106a69f 100644 --- a/scripts/auto-build/auto-build-common +++ b/scripts/auto-build/auto-build-common @@ -1,9 +1,14 @@ # these are common variables for the auto-build scripts -HOSTNAME=$(hostname | sed 's|\([a-zA-Z0-9-]\)\..*|\1|' | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|') SYSTEM=$(uname -s | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|') DATE=$(date +%Y-%m-%d) TIME=$(date +%H.%M.%S) +HOSTNAME=$(hostname | sed 's|\([a-zA-Z0-9-]\)\..*|\1|' | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|') + +# use the hostname from /etc/hostname in case we are a chroot build enviroment +if [ -e /etc/hostname ]; then + HOSTNAME=`cat /etc/hostname` +fi ## the following creates a spam-bot that sends emails to an address that has not asked for it ## because of the spam-problem, i (jmz) have disabled it |