From 5e97f6bad5d925a2faea236e6f1371a275eff9b2 Mon Sep 17 00:00:00 2001 From: frederik Date: Sat, 11 Oct 2025 13:59:12 +0200 Subject: [PATCH] cleanup: no need to edit phpsysinfo.ini, change it in the repo --- scripts/update_birdnet_snippets.sh | 4 ---- templates/phpsysinfo.ini | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.sh index a5878d3..cf3046c 100755 --- a/scripts/update_birdnet_snippets.sh +++ b/scripts/update_birdnet_snippets.sh @@ -220,10 +220,6 @@ if grep -q 'php7.4-' /etc/caddy/Caddyfile &>/dev/null; then sed -i 's/php7.4-/php-/' /etc/caddy/Caddyfile fi -if grep -q '^HIDE_MOUNTS.*\/run\/user' $HOME/BirdNET-Pi/templates/phpsysinfo.ini; then - sed -i 's#/run/user/[0-9]\+#/run/user/[0-9]+#g' $HOME/BirdNET-Pi/templates/phpsysinfo.ini -fi - if ! [ -L /etc/avahi/services/http.service ];then # symbolic link does not work here, so just copy cp -f $HOME/BirdNET-Pi/templates/http.service /etc/avahi/services/ diff --git a/templates/phpsysinfo.ini b/templates/phpsysinfo.ini index e73d118..13d4bf7 100644 --- a/templates/phpsysinfo.ini +++ b/templates/phpsysinfo.ini @@ -335,7 +335,7 @@ SHOW_INODES=true ; Hide mounts ; Example : HIDE_MOUNTS="/home,/usr" ; -HIDE_MOUNTS="/boot,/run,/run/lock,/run/user/1000,/dev/shm,/dev" +HIDE_MOUNTS="/boot,/run,/run/lock,/run/user/[0-9]+,/dev/shm,/dev" ; Filesystem usage warning threshold in percent