diff options
Diffstat (limited to 'cholerab/tahoe')
-rw-r--r-- | cholerab/tahoe/brick_installation | 5 |
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 |