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

Update config.json.template #66

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DocViper666
Copy link

@DocViper666 DocViper666 commented May 19, 2024

Change name of telnet connection parameters in config.json.template

Reason:
Make it easier and defined (host is used twice) to use sed to set those parameters by scripting (for use in Docker container using env variables) and create a valid config.json from template

sed -e "s/\(\"host\"\:\).*$/\1\"${CLUSTERWEB_DB_CONTAINERHOSTNAME}\",/" \
    -e "s/\(\"user\"\:\).*$/\1\"${CLUSTERWEB_USER}\",/" \
    -e "s/\(\"passwd\"\:\).*$/\1\"${CLUSTERWEB_PASSWORD}\",/" \
    -e "s/\(\"db\"\:\).*$/\1\"${CLUSTERWEB_DATABASE}\"/" \
    -e "s/\(\"mycallsign\"\:\).*$/\1\"${CLUSTER_CALLSIGN}\",/" \
    -e "s/\(\"mail\"\:\).*$/\1\"${CLUSTER_EMAIL}\",/" \
    -e "s/\(\"interval\"\:\).*$/\1${SPIDERWEB_PAGEREFRESH_MS:-15000}/" \
    -e "s/\(\"telnet_host\"\:\).*$/\1\"${SPIDERWEB_TELNET}\",/" \
    -e "s/\(\"telnet_port\"\:\).*$/\1\"${CLUSTER_PORT}\",/" \
    -e "s/\(\"telnet_user\"\:\).*$/\1\"${SPIDERWEB_TELNET_USER}\",/" \
    -e "s/\(\"telnet_password\"\:\).*$/\1\"${SPIDERWEB_TELNET_PASSWORD}\"/" \
    -e "s/\(\"enable_cq_filter\"\:\).*$/\1\"${SPIDERWEB_ENABLE_CQFILTER:-n}\",/" \
    < ./cfg/config.json.template > ./cfg/config.json

Change name of parameters for telnet connection. Make it easier to used sed to set those parameters by scripting (for use in Docker container using env variables)
Read parameters correctly from config.json
Telnet config now adjusted
Copy link

sonarcloud bot commented May 19, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

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

Successfully merging this pull request may close these issues.

1 participant