Skip to content

Commit

Permalink
Correct backup script
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Nov 19, 2024
1 parent 8cba002 commit 4d68823
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions birdnet-pi/rootfs/etc/cont-init.d/81-modifications.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ echo "... redirecting birdnet_log service output to /logs"
sed -i "/User=pi/d" "$HOME/BirdNET-Pi/templates/birdnet_log.service"
sed -i "s|birdnet_log.sh|cat /proc/1/fd/1|g" "$HOME/BirdNET-Pi/templates/birdnet_log.service"

# Correct backup script
echo "... correct backup script"
sed -i "/PHP_SERVICE=/c PHP_SERVICE=\$(systemctl list-unit-files -t service --no-pager | grep 'php' | grep 'fpm' | awk '{print \$1}')" "$HOME/BirdNET-Pi/scripts/backup_data.sh"

# Caddyfile modifications
echo "... modifying Caddyfile configurations"
caddy fmt --overwrite /etc/caddy/Caddyfile
Expand Down

0 comments on commit 4d68823

Please sign in to comment.