Commit 3ceb51de authored by Ivan Vandot's avatar Ivan Vandot Committed by GitHub

rename folders for brew to swarm-bee (#1003)

* rename folders for brew ro swarm-bee

* rename config path
parent 6c741079
......@@ -122,8 +122,8 @@ brews:
homepage: https://swarm.ethereum.org/
description: Ethereum Swarm node
caveats: |
Logs: #{var}/log/bee/bee.log
Config: #{etc}/bee/bee.yaml
Logs: #{var}/log/swarm-bee/bee.log
Config: #{etc}/swarm-bee/bee.yaml
Bee has SWAP enabled by default and it needs ethereum endpoint to operate.
It is recommended to use external signer with bee.
......@@ -133,13 +133,13 @@ brews:
test: |
system "#{bin}/bee version"
install: |
(etc/"bee").mkpath
(var/"lib/bee").mkpath
(etc/"swarm-bee").mkpath
(var/"lib/swarm-bee").mkpath
bin.install ["bee", "packaging/homebrew/bee-get-addr"]
etc.install "packaging/homebrew/bee.yaml" => "bee/bee.yaml" unless File.exists? etc/"bee/bee.yaml"
etc.install "packaging/homebrew/bee.yaml" => "swarm-bee/bee.yaml" unless File.exists? etc/"swarm-bee/bee.yaml"
post_install: |
system("openssl", "rand", "-base64", "32", "-out", var/"lib/bee/password")
system(bin/"bee", "init", "--config", etc/"bee/bee.yaml", ">/dev/null", "2>&1")
system("openssl", "rand", "-base64", "32", "-out", var/"lib/swarm-bee/password")
system(bin/"bee", "init", "--config", etc/"swarm-bee/bee.yaml", ">/dev/null", "2>&1")
plist: |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
......@@ -154,15 +154,15 @@ brews:
<string>#{bin}/bee</string>
<string>start</string>
<string>--config</string>
<string>#{etc}/bee/bee.yaml</string>
<string>#{etc}/swarm-bee/bee.yaml</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>/usr/local</string>
<key>StandardOutPath</key>
<string>#{var}/log/bee/bee.log</string>
<string>#{var}/log/swarm-bee/bee.log</string>
<key>StandardErrorPath</key>
<string>#{var}/log/bee/bee.log</string>
<string>#{var}/log/swarm-bee/bee.log</string>
</dict>
</plist>
#!/bin/sh
RESP=$(/usr/local/bin/bee init --config /usr/local/etc/bee/bee.yaml 2>&1)
RESP=$(/usr/local/bin/bee init --config /usr/local/etc/swarm-bee/bee.yaml 2>&1)
case "$RESP" in
Error*)
echo "
......
......@@ -7,13 +7,13 @@
## enable clef signer
# clef-signer-enable: false
## clef signer endpoint
clef-signer-endpoint: /usr/local/var/lib/bee-clef/clef.ipc
clef-signer-endpoint: /usr/local/var/lib/swarm-clef/clef.ipc
## config file (default is /home/<user>/.bee.yaml)
config: /usr/local/etc/bee/bee.yaml
config: /usr/local/etc/swarm-bee/bee.yaml
## origins with CORS headers enabled
# cors-allowed-origins: []
## data directory (default "/home/<user>/.bee")
data-dir: /usr/local/var/lib/bee
data-dir: /usr/local/var/lib/swarm-bee
## db capacity in chunks, multiply by 4096 to get approximate capacity in bytes
# db-capacity: 5000000
## debug HTTP API listen address (default ":1635")
......@@ -37,7 +37,7 @@ data-dir: /usr/local/var/lib/bee
## password for decrypting keys
# password: ""
## path to a file that contains password for decrypting keys
password-file: /usr/local/var/lib/bee/password
password-file: /usr/local/var/lib/swarm-bee/password
## amount in BZZ below the peers payment threshold when we initiate settlement (default 10000)
# payment-early: 10000
## threshold in BZZ where you expect to get paid from your peers (default 100000)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment