adustments and new scripts for Confguration Wizard GUI

This commit is contained in:
Patrick McGuire
2021-11-11 13:56:01 -05:00
parent d5701cc0f7
commit ee74bda0e8
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -44,5 +44,5 @@ footer {
<a href="https://birdnetpigermany.hopto.org" target="_content"><h5>Germany</h5></a>
</body>
<footer style="font-size: small;">
Icon made by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">Flaticon.com</a>
Icon made by <a href="https://www.freepik.com" target="_content" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" target="_content" title="Flaticon">Flaticon.com</a>
</html>
+3 -3
View File
@@ -15,13 +15,13 @@ fi
if ! [ -z ${caddy_pwd} ];then
sed -i s/'^CADDY_PWD=.*'/"CADDY_PWD=${caddy_pwd}"/g ${birdnet_conf}
hash_pwd=$(caddy hash-password -plaintext ${caddy_pwd})
sed -i s/'birdnet\ .*'/"birdnet ${hash_pwd}"/g /etc/caddy/Caddyfile
systemctl reload caddy
sudo sed -i s/'birdnet\ .*'/"birdnet ${hash_pwd}"/g /etc/caddy/Caddyfile
sudo systemctl reload caddy
fi
if ! [ -z ${db_pwd} ];then
sed -i s/'^DB_PWD=.*'/"DB_PWD=${db_pwd}"/g ${birdnet_conf}
${birdnetpi_dir}/scripts/update_db_pwd.sh
${birdnetpi_dir}/scripts/update_db_pwd_bullseye.sh
fi
if ! [ -z ${birdnetpi_url} ];then