updating update_services to match install_services

This commit is contained in:
Patrick McGuire
2021-11-10 13:26:50 -05:00
parent 9b2aa50206
commit a1d2a05e56
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -209,9 +209,8 @@ install_Caddyfile() {
if [ -f /etc/caddy/Caddyfile ];then
cp /etc/caddy/Caddyfile{,.original}
fi
HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD})
php_version="$(awk -F. '{print $2}' <(ls -l $(which /etc/alternatives/php)))"
echo "php_version=${php_version}"
HASHWORD=$(caddy hash-password -plaintext ${CADDY_PWD})
cat << EOF > /etc/caddy/Caddyfile
http://localhost http://birdnetpi.local ${BIRDNETPI_URL} {
root * ${EXTRACTED}