Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dansmithcode opened this issue Dec 4, 2024 · 0 comments
Open

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

dansmithcode opened this issue Dec 4, 2024 · 0 comments

Comments

@dansmithcode
Copy link

dansmithcode commented Dec 4, 2024

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\]".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant