added new birdnet.conf update task
This commit is contained in:
@@ -6,6 +6,18 @@ my_dir=${HOME}/BirdNET-Pi/scripts
|
|||||||
# Stage 1 updates the services
|
# Stage 1 updates the services
|
||||||
sudo ${my_dir}/update_services.sh
|
sudo ${my_dir}/update_services.sh
|
||||||
|
|
||||||
|
# Stage 1.5: adding new birdnet.conf entries
|
||||||
|
if ! grep FULL_DISK ${birdnet_conf};then
|
||||||
|
cat << EOF >> ${birdnet_conf}
|
||||||
|
|
||||||
|
## FULL_DISK can be set to configure how the system reacts to a full disk
|
||||||
|
## 0 = Remove the oldest day's worth of recordings
|
||||||
|
## 1 = Keep all data and `stop_core_services.sh`
|
||||||
|
|
||||||
|
FULL_DISK=0
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
# Stage 2 restarts the services
|
# Stage 2 restarts the services
|
||||||
newservices=$(awk '/service/ && /systemctl/ && !/php/ {print $3}' ${my_dir}/install_services.sh | sort)
|
newservices=$(awk '/service/ && /systemctl/ && !/php/ {print $3}' ${my_dir}/install_services.sh | sort)
|
||||||
for i in ${newservices[@]};do
|
for i in ${newservices[@]};do
|
||||||
|
|||||||
Reference in New Issue
Block a user