From f987e9699070fff2788a4054e341aa9649535b97 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Thu, 10 Feb 2022 11:00:41 -0500 Subject: [PATCH] should help with updates --- scripts/update_birdnet2.sh | 1 + scripts/update_services.sh | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/scripts/update_birdnet2.sh b/scripts/update_birdnet2.sh index 56b33bd..9379732 100755 --- a/scripts/update_birdnet2.sh +++ b/scripts/update_birdnet2.sh @@ -39,6 +39,7 @@ chart_viewer.service birdnet_recording.service birdnet_log.service) +sudo systemctl reload caddy for i in "${services[@]}";do sudo systemctl restart "${i}" done diff --git a/scripts/update_services.sh b/scripts/update_services.sh index 181cbd9..0c13c18 100755 --- a/scripts/update_services.sh +++ b/scripts/update_services.sh @@ -26,7 +26,6 @@ install_scripts() { install_mariadb() { if ! which mysql &> /dev/null;then echo "Installing MariaDB Server" - apt -qqy update apt -qqy install mariadb-server echo "MariaDB Installed" fi @@ -201,7 +200,6 @@ install_alsa() { echo "alsa-utils installed" else echo "Installing alsa-utils" - apt -qqq update apt install -qqy alsa-utils echo "alsa-utils installed" fi @@ -209,7 +207,6 @@ install_alsa() { echo "PulseAudio installed" else echo "Installing pulseaudio" - apt -qqq update apt install -qqy pulseaudio echo "PulseAudio installed" fi @@ -251,7 +248,6 @@ install_caddy() { curl -1sLf \ 'https://dl.cloudsmith.io/public/caddy/stable/setup.deb.sh' \ | sudo -E bash - apt -qq update apt install -qqy caddy=2.4.5 systemctl enable --now caddy else @@ -324,7 +320,6 @@ ${BIRDNETLOG_URL} { } EOF fi - systemctl reload caddy } update_etc_hosts() { @@ -441,7 +436,6 @@ install_sox() { echo "Sox is installed" else echo "Installing sox" - apt -qq update apt install -y sox echo "Sox installed" fi @@ -450,7 +444,6 @@ install_sox() { install_php() { if ! which php &> /dev/null || ! which php-fpm || ! apt list --installed | grep php-xml;then echo "Installing PHP modules" - apt -qq update apt install -qqy php php-fpm php-mysql php-xml php-zip else echo "PHP and PHP-FPM installed" @@ -472,7 +465,6 @@ EOF install_icecast() { if ! which icecast2;then echo "Installing IceCast2" - apt -qq update echo "icecast2 icecast2/icecast-setup boolean false" | debconf-set-selections apt install -qqy icecast2 config_icecast @@ -536,6 +528,7 @@ install_cleanup_cron() { } install_selected_services() { + sudo apt -qqqq update install_scripts install_birdnet_analysis install_birdnet_server