Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

sosetup -w not writing answer file correctly in some cases #1270

@dougburks

Description

@dougburks

From Steve Baker:

I've been debugging sosetup a bit with answer files and it looks like sosetup -w writes out SNIFFING_INTERFACES space delimited like this
SNIFFING_INTERFACES=ens19 ens20 ens21
but running sosetup with said answer file fails because it needs comma delimited
when it reads it back in
source "$ANSWERFILE"
       # copy SNIFFING_INTERFACES into INTERFACES
       INTERFACES="$SNIFFING_INTERFACES"
with the space delimted sourcing the answer file actually produces an error right away

line 12: ens20: command not found
from what I can tell this line should be added to sosetup in the section where the answer file is written out
echo "FORWARD=$FORWARD" >> $WRITEANSWERFILE
without FORWARD set sosetup doesn't setup the local port forward in AutoSSH options

and syslog doesn't get to the master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions