-
-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Bug description
As the replacement of config var values in env-setup.sh uses sed, the replacement string might contain a "wrong" value.
For instance .env contains RASPAP_SSID_PASS=Change&Me, which results in the line wpa_passphrase=Changewpa_passphrase=ChangeMeMe in /etc/hostapd/hostapd.conf.
Ampersand (&) is apparently a special character in the sed replacement string, that matches the "old string" (the string sed should replace).
An ampersand (‘&’) appearing in the replacement is replaced by the string matching the regular expression. The string ‘#’, where ‘#’ is a digit, is replaced by the text matched by the corresponding backreference expression (see re_format(7)).
All other instances of a backslash will print the literal character following it. Using a backslash before any other character other than ‘&’, ‘\’, digit, newline (ascii 0x0a), and the delimiter is unspecified and might not be portable to other implementations of sed.
I guess there should be some escaping of special characters
Related issues
- I have searched this repository for existing issues and pull requests that look similar
Steps to Reproduce
- Configure
RASPAP_SSID_PASS=Change&Meindocker-compose.yaml - Bring containers up with
docker compose up -d - Go inside container with
docker execc -it raspap bash - Check file inside container
cat /etc/hostapd/hostapd.conf
These common fixes didn't resolve my issue
- I have tried removing/destroying my container, and re-creating a new container
- I have tried fresh volume data by backing up and moving/removing the old volume data
- I have tried running the default
docker runexample(s) in the readme (removing any customizations I added) - I have tried a newer or older version of RaspAP Docker (depending what version the issue started in for me)
- I have tried running without my volume data mounts to eliminate volumes as the cause