summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-12-26 14:34:35 +0100
committerHolger Levsen <holger@layer-acht.org>2016-12-26 14:34:35 +0100
commitb3e51a63fa3185840ccbc3f17dac7ac5eedb4b5b (patch)
tree99a1ef5ba982d5b96a09b3dbae0542afacc67431
parent992fc8d8dbda0532293900b0bf9a8974d8fdcc21 (diff)
downloadjenkins.debian.net-b3e51a63fa3185840ccbc3f17dac7ac5eedb4b5b.tar.xz
set /etc/mailname if it isnt
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xupdate_jdn.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index 5ecb9744..d0351c10 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -522,6 +522,7 @@ sudo cp --preserve=mode,timestamps -r hosts/$HOSTNAME/usr/* /usr/
#
sudo chown root.root /etc/sudoers.d/jenkins ; sudo chmod 700 /etc/sudoers.d/jenkins
sudo chown root.root /etc/sudoers.d/jenkins-adm ; sudo chmod 700 /etc/sudoers.d/jenkins-adm
+[ -f /etc/mailname ] || ( echo $HOSTNAME.debian.net | sudo tee /etc/mailname )
if [ "$HOSTNAME" = "jenkins" ] ; then
if [ $BASEDIR/hosts/$HOSTNAME/etc/apache2 -nt $STAMP ] || [ ! -f $STAMP ] ; then