From edebc308bfa99ad6bdea8c30621df91a293a43c9 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Fri, 20 Dec 2024 11:29:15 +0100 Subject: [PATCH] Replace check_if_installed --- tools/modules/software/install_homepage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/modules/software/install_homepage.sh b/tools/modules/software/install_homepage.sh index 185a21732..b9c5614b4 100644 --- a/tools/modules/software/install_homepage.sh +++ b/tools/modules/software/install_homepage.sh @@ -14,7 +14,7 @@ function module_homepage () { local title="homepage" local condition=$(which "$title" 2>/dev/null) - if check_if_installed docker-ce; then + if pkg_installed docker-ce; then local container=$(docker container ls -a | mawk '/homepage?( |$)/{print $1}') local image=$(docker image ls -a | mawk '/homepage?( |$)/{print $3}') fi @@ -26,7 +26,7 @@ function module_homepage () { case "$1" in "${commands[0]}") - check_if_installed docker-ce || install_docker + pkg_installed docker-ce || install_docker [[ -d "$HOMEPAGE_BASE" ]] || mkdir -p "$HOMEPAGE_BASE" || { echo "Couldn't create storage directory: $HOMEPAGE_BASE"; exit 1; } docker run -d \ --name homepage \