Update update_birdnet2.sh
This commit is contained in:
@@ -7,22 +7,12 @@ my_dir=${HOME}/BirdNET-Pi/scripts
|
|||||||
sudo ${my_dir}/update_services.sh
|
sudo ${my_dir}/update_services.sh
|
||||||
|
|
||||||
# Stage 2 restarts the services
|
# Stage 2 restarts the services
|
||||||
services=(avahi-alias@birdnetpi.local.service
|
newservices=$(awk '/service/ && /systemctl/ && !/php/ {print $3}' ${my_dir}/install_services.sh | sort)
|
||||||
birdnet_analysis.service
|
|
||||||
birdnet_log.service
|
|
||||||
birdnet_recording.service
|
|
||||||
edit_birdnet_conf.service
|
|
||||||
extraction_log.service
|
|
||||||
extraction.service
|
|
||||||
extraction.timer
|
|
||||||
livestream.service
|
|
||||||
pushed_notifications.service
|
|
||||||
spectrogram_viewer.service)
|
|
||||||
|
|
||||||
restart_services() {
|
restart_newservices() {
|
||||||
for i in ${services[@]};do
|
for i in ${newservices[@]};do
|
||||||
sudo systemctl restart ${i}
|
sudo systemctl restart ${i}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
restart_services
|
restart_newservices
|
||||||
|
|||||||
Reference in New Issue
Block a user