mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update 81-modifications.sh
This commit is contained in:
@@ -67,7 +67,8 @@ if ! grep -q "/usr/bin/sudo" "$HOME/BirdNET-Pi/templates/birdnet_analysis.servic
|
||||
fi
|
||||
|
||||
# Allow pulseaudio system
|
||||
sed -i "s/pulseaudio --start/pulseaudio --start 2>/dev/null && pulseaudio --check || pulseaudio --system/g" "$HOME"/BirdNET-Pi/scripts/birdnet_recording.sh
|
||||
echo "... allow pulseaudio as root as backup"
|
||||
sed -i 's#pulseaudio --start#pulseaudio --start 2>/dev/null && pulseaudio --check || pulseaudio --system#g' "$HOME"/BirdNET-Pi/scripts/birdnet_recording.sh
|
||||
|
||||
# Send services log to container logs
|
||||
echo "... redirecting services logs to container logs"
|
||||
@@ -140,7 +141,7 @@ fi
|
||||
|
||||
# Set RECS_DIR
|
||||
echo "... setting RECS_DIR to /tmp"
|
||||
grep -rl "RECS_DIR" $HOME --exclude="*.php" | while read -r file; do
|
||||
grep -rl "RECS_DIR" "$HOME" --exclude="*.php" | while read -r file; do
|
||||
sed -i "s|conf\['RECS_DIR'\]|'/tmp'|g" "$file"
|
||||
sed -i "s|\$RECS_DIR|/tmp|g" "$file"
|
||||
sed -i "s|\${RECS_DIR}|/tmp|g" "$file"
|
||||
|
||||
Reference in New Issue
Block a user