summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-11-04 16:37:40 +0100
committertv <tv@nomic.retiolum>2013-11-04 16:37:40 +0100
commit52dc574f7a526661661255fc6e65640802609808 (patch)
treeed830008dbebbad74fb129e3feef2ee9236b90a2
parent93c3a2b9051a8b9f711168eaae4d464c7a6c832d (diff)
cholerab brick installation: remove legacy code
-rw-r--r--cholerab/tahoe/brick_installation5
1 files changed, 2 insertions, 3 deletions
diff --git a/cholerab/tahoe/brick_installation b/cholerab/tahoe/brick_installation
index 1aedb52b..79748623 100644
--- a/cholerab/tahoe/brick_installation
+++ b/cholerab/tahoe/brick_installation
@@ -23,9 +23,8 @@ chown -R tahoe: /opt/tahoe
# change nick name
(echo -n "nick name [$HOSTNAME]: " &&
- read name &&
- { test "x$name" != x || name=$HOSTNAME; } &&
- sed -i "s/^nickname =.*/nickname = $name/" /opt/tahoe/tahoe.cfg)
+ read nn &&
+ sed -i "s/^nickname =.*/nickname = ${nn:-$HOSTNAME}/" /opt/tahoe/tahoe.cfg)
# replace introducer.furl = None with the one from pigstarter/tahoe/introducer.furl
sed -i "s#^introducer\.furl.*#introducer.furl = $(curl pigstarter/tahoe/introducer.furl)#" /opt/tahoe/tahoe.cfg