From 4b7635cd35ebd0162a76da2abab9c33e6994f20b Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Sat, 16 Oct 2021 12:25:40 -0400 Subject: [PATCH] fixed clear_all_data.sh wiping phpsysinfo away --- scripts/clear_all_data.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/clear_all_data.sh b/scripts/clear_all_data.sh index de0b816..d7b0035 100755 --- a/scripts/clear_all_data.sh +++ b/scripts/clear_all_data.sh @@ -21,6 +21,9 @@ sudo -u ${BIRDNET_USER} ln -s /home/pi/BirdNET-Pi/templates/index.html ${EXTRACT [ -L ${EXTRACTED}/spectrogram.php ] || sudo -u ${BIRDNET_USER} ln -s /home/pi/BirdNET-Pi/scripts/spectrogram.php ${EXTRACTED} [ -L ${EXTRACTED}/spectrogram.sh ] || sudo -u ${BIRDNET_USER} ln -s /home/pi/BirdNET-Pi/scripts/spectrogram.sh ${EXTRACTED} [ -L ${EXTRACTED}/viewdb.php ] || sudo -u ${BIRDNET_USER} ln -s /home/pi/BirdNET-Pi/scripts/viewdb.php ${EXTRACTED} +sudo -u ${USER} ln -fs ${HOME}/phpsysinfo ${EXTRACTED} +[ -L ${EXTRACTED}/phpsysinfo.ini ] || sudo -u ${USER} cp ${HOME}/phpsysinfo/phpsysinfo.ini.new ${HOME}/phpsysinfo/phpsysinfo.ini + sudo -u ${BIRDNET_USER} cp ~/BirdNET-Pi/templates/index.html ${EXTRACTED}/ echo "Dropping and re-creating database"