adding removed defaults

This commit is contained in:
Patrick McGuire
2021-10-19 16:05:16 -04:00
parent 3bedefe432
commit 3917807a30
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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 -u${USER} sed -i "s/http:\/\/birdnetpi.local:8080/${BIRDNETLOG_URL}/g" $(dirname ${my_dir})/templates/index.html
sudo -u${USER} 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}