install.sh over-writes config #4

Closed
opened 2020-03-20 08:48:21 +01:00 by mixmix · 4 comments

This line in install.sh would appear to totally nuke any existing config stored there. That could be quite upsetting

	mkdir -p ~/.ssb
	cat > ~/.ssb/config <<EOF
{
  "connections": {
    "incoming": {
      "net": [
        {
          "scope": "public", "external": ["$EXTERNAL"], "transform": "shs", "port": 8008
        },
        { "scope": "private", "transform": "shs", "port": 8008, "host": "127.0.0.1" }
      ]
    },
    "outgoing": {
      "net": [
        {
          "transform": "shs"
        }
      ]
    }
  }
}
EOF
This line in `install.sh` would appear to totally nuke any existing config stored there. That could be quite upsetting ``` mkdir -p ~/.ssb cat > ~/.ssb/config <<EOF { "connections": { "incoming": { "net": [ { "scope": "public", "external": ["$EXTERNAL"], "transform": "shs", "port": 8008 }, { "scope": "private", "transform": "shs", "port": 8008, "host": "127.0.0.1" } ] }, "outgoing": { "net": [ { "transform": "shs" } ] } } } EOF ```
Owner

Yeah this is coming from "Astroport" install where SSB node is a Pub.
I am trying to clarify that multiple Node configurations into same install script.

Yeah this is coming from "Astroport" install where SSB node is a Pub. I am trying to clarify that multiple Node configurations into same install script.
Owner

Modified install.sh in dev-fred
Could you merge with master @poka @boris?
I don't have rigths

git push origin master
To https://git.p2p.legal/axiom-team/ssb-g1-tip.git
 ! [rejected]        master -> master (non-fast-forward)
error: impossible de pousser des références vers 'https://git.p2p.legal/axiom-team/ssb-g1-tip.git'
astuce: Les mises à jour ont été rejetées car la pointe de la branche courante est derrière
astuce: son homologue distant. Extrayez cette branche et intégrez les changements distants
astuce: (par exemple 'git pull ...') avant de pousser à nouveau.
astuce: Voir la 'Note à propos des avances rapides' dans 'git push --help' pour plus d'information.

Modified install.sh in dev-fred Could you merge with master @poka @boris? I don't have rigths ``` git push origin master To https://git.p2p.legal/axiom-team/ssb-g1-tip.git ! [rejected] master -> master (non-fast-forward) error: impossible de pousser des références vers 'https://git.p2p.legal/axiom-team/ssb-g1-tip.git' astuce: Les mises à jour ont été rejetées car la pointe de la branche courante est derrière astuce: son homologue distant. Extrayez cette branche et intégrez les changements distants astuce: (par exemple 'git pull ...') avant de pousser à nouveau. astuce: Voir la 'Note à propos des avances rapides' dans 'git push --help' pour plus d'information. ```
Owner

Done

Done
Owner

Could you audit code?
Now install script ask if you want to install ssb-server
and backup old one if you answer 'y'

Could you audit code? Now install script ask if you want to install ssb-server and backup old one if you answer 'y'
qo-op closed this issue 2020-03-30 15:38:45 +02:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: axiom-team/ssb-g1-tip#4
No description provided.