chore: move nested function

Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
Stephan Wendel
2023-02-03 21:39:34 +01:00
parent 85849ecf56
commit ce67e8ddb3

View File

@@ -196,8 +196,6 @@ function compare_crowsnest_versions() {
echo "${versions}" echo "${versions}"
} }
function update_crowsnest() {
## Helper Func
function install_crowsnest_dependencies() { function install_crowsnest_dependencies() {
local packages local packages
local install_script="${CROWSNEST_DIR}/tools/install.sh" local install_script="${CROWSNEST_DIR}/tools/install.sh"
@@ -227,6 +225,7 @@ function update_crowsnest() {
fi fi
} }
function update_crowsnest() {
do_action_service "stop" "crowsnest" do_action_service "stop" "crowsnest"
if [[ ! -d ${CROWSNEST_DIR} ]]; then if [[ ! -d ${CROWSNEST_DIR} ]]; then