Skip to content
Snippets Groups Projects
Commit 758015cd authored by Michael Schwarz's avatar Michael Schwarz
Browse files

ffpb-send-stored-debug should get its host and port from site.conf

parent 6689bf56
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,9 @@ if [ ! -f "{$stored_debug_file}" ];then
fi
#send stored debug data to server
code=$(nc debugreport.paderborn.freifunk.net 1337 < "${stored_debug_file}")
HOST=$(lua -e 'print(require("gluon.site_config").debugserver.host)')
PORT=$(lua -e 'print(require("gluon.site_config").debugserver.port)')
code=$(nc $HOST $PORT < "${stored_debug_file}")
if [ $? = 0 ]; then
echo "Report number: ${code}" > /var/cache/ff/debug/lastreport.code
rm -f -- "${stored_debug_file}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment