Adjusted docs and small tweaks

This commit is contained in:
kexkey
2018-10-12 13:21:25 -04:00
parent e1ee367430
commit 9babb26d5f
6 changed files with 13 additions and 35 deletions

View File

@@ -27,11 +27,11 @@ createCurlConfig() {
local user=$( trim $2 )
echo "user=${user}" > ${1}
}
if [ ! -e ${DB_FILE} ]; then
echo "DB not found, creating..." > /dev/stderr
echo "DB not found, creating..." 1>&2
cat watching.sql | sqlite3 $DB_FILE
fi

View File

@@ -1,7 +1,7 @@
#!/bin/sh
read line
echo ${line} > /dev/stderr
echo ${line} 1>&2
echo -ne "HTTP/1.1 200 OK\r\n"
echo -e "Content-Type: application/json\r\nContent-Length: 0\r\n\r\n"