Skip to content

Fails to install: "Cloudflare configuration already exists" #56

@dansmithcode

Description

@dansmithcode

Following the installation instructions and running the install script, I get this error:

Cloudflare configuration already exists.

Examining the script, it seems to be a regex bug:

if ! grep -q "[Cloudflare]" "$CONF_FILE"; then
    echo -e "$STRING_TO_ADD" | sudo tee -a "$CONF_FILE" > /dev/null
else
    echo "Cloudflare configuration already exists."
fi

The regex string "[Cloudflare]" is a character class, matching every C, l, o, etc. Should be "\[Cloudflare\]".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions