ssb Pub/Local config
This commit is contained in:
parent
f6d9a28a07
commit
5c42294052
|
@ -40,23 +40,8 @@ scuttlebutt() {
|
||||||
nodename=$(cat /etc/hostname)
|
nodename=$(cat /etc/hostname)
|
||||||
extension=$(echo $nodename | cut -d '.' -f 2)
|
extension=$(echo $nodename | cut -d '.' -f 2)
|
||||||
|
|
||||||
if [[ $extension == "" ]]; then
|
if [[ $extension != "" ]]; then
|
||||||
nodename=$nodename.home
|
|
||||||
|
|
||||||
# LOCAL
|
|
||||||
cat > ~/.ssb/config <<EOF
|
|
||||||
{
|
|
||||||
"incoming": {
|
|
||||||
"net": [{ "port": 8008, "scope": "public", "transform": "shs" }]
|
|
||||||
},
|
|
||||||
"outgoing": {
|
|
||||||
"net": [{ "transform": "shs" }]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
else
|
|
||||||
|
|
||||||
# PUB
|
# PUB
|
||||||
cat > ~/.ssb/config <<EOF
|
cat > ~/.ssb/config <<EOF
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue