Skip to content

Commit cfc896f

Browse files
committed
Replace check_if_installed
1 parent b1a8b9e commit cfc896f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/modules/software/install_homepage.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function module_homepage () {
1414
local title="homepage"
1515
local condition=$(which "$title" 2>/dev/null)
1616

17-
if check_if_installed docker-ce; then
17+
if pkg_installed docker-ce; then
1818
local container=$(docker container ls -a | mawk '/homepage?( |$)/{print $1}')
1919
local image=$(docker image ls -a | mawk '/homepage?( |$)/{print $3}')
2020
fi
@@ -26,7 +26,7 @@ function module_homepage () {
2626

2727
case "$1" in
2828
"${commands[0]}")
29-
check_if_installed docker-ce || install_docker
29+
pkg_installed docker-ce || install_docker
3030
[[ -d "$HOMEPAGE_BASE" ]] || mkdir -p "$HOMEPAGE_BASE" || { echo "Couldn't create storage directory: $HOMEPAGE_BASE"; exit 1; }
3131
docker run -d \
3232
--name homepage \

0 commit comments

Comments
 (0)