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