From 3bedefe43210aa26bc1a2523a60dad77c09696c9 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Tue, 19 Oct 2021 16:01:18 -0400 Subject: [PATCH] typos of course --- analyze.py | 2 +- scripts/update_services.sh | 4 ++-- scripts/viewdb.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/analyze.py b/analyze.py index 4177070..9e1b6da 100644 --- a/analyze.py +++ b/analyze.py @@ -246,7 +246,7 @@ def main(): connection = mysql.connector.connect(host='localhost', database='birds', user='birder', - password='databasepassword') + password='changearoo') cursor = connection.cursor() mySql_insert_query = """INSERT INTO detections (Date, Time, Sci_Name, Com_Name, Confidence, Lat, Lon, Cutoff, Week, Sens, Overlap) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) """ diff --git a/scripts/update_services.sh b/scripts/update_services.sh index 126a944..7054736 100755 --- a/scripts/update_services.sh +++ b/scripts/update_services.sh @@ -109,8 +109,8 @@ create_necessary_dirs() { [ -d ${EXTRACTED}/By_Scientific_Name ] || sudo -u ${USER} mkdir -p ${EXTRACTED}/By_Scientific_Name [ -d ${PROCESSED} ] || sudo -u ${USER} mkdir -p ${PROCESSED} [ -L ${EXTRACTED}/index.html ] || sudo -u ${USER} ln -s $(dirname ${my_dir})/templates/index.html ${EXTRACTED} - sudo sed -i "s/http://birdnetpi.local:8080/${BIRDNETLOG_URL}/g" $(dirname ${my_dir})/templates/index.html - sudo sed -i "s/http://birdnetpi.local:8888/${EXTRACTIONLOG_URL}/g" $(dirname ${my_dir})/templates/index.html + sudo sed -i "s/http:\/\/birdnetpi.local:8080/${BIRDNETLOG_URL}/g" $(dirname ${my_dir})/templates/index.html + sudo sed -i "s/http:\/\/birdnetpi.local:8888/${EXTRACTIONLOG_URL}/g" $(dirname ${my_dir})/templates/index.html [ -L ${EXTRACTED}/scripts ] || sudo -u ${USER} ln -s $(dirname ${my_dir})/scripts ${EXTRACTED} [ -L ${EXTRACTED}/spectrogram.php ] || sudo -u ${USER} ln -s $(dirname ${my_dir})/scripts/spectrogram.* ${EXTRACTED} [ -L ${EXTRACTED}/viewdb.php ] || sudo -u ${USER} ln -s $(dirname ${my_dir})/scripts/viewdb.php ${EXTRACTED} diff --git a/scripts/viewdb.php b/scripts/viewdb.php index 41075cf..663beb1 100644 --- a/scripts/viewdb.php +++ b/scripts/viewdb.php @@ -2,7 +2,7 @@ header("refresh: 30;"); $user = 'birder'; -$password = 'databasepassword'; +$password = 'changearoo'; $database = 'birds';