Skip to content

Commit

Permalink
Replace check_if_installed
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Dec 20, 2024
1 parent b1a8b9e commit cfc896f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/modules/software/install_homepage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit cfc896f

Please sign in to comment.