mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
fix(container-setup.sh): fix docker binary checks in validate_prereqs
first check whether docker or podman bins are there; then choose one one of them
This commit is contained in:
parent
28338d81f2
commit
6fcae72eb4
@ -43,7 +43,7 @@ validate_prereqs() {
|
||||
podman_exists=$(command -v podman)
|
||||
podman_compose_exists=$(command -v podman-compose)
|
||||
|
||||
if [ -x "$docker_exists" ] && [ -x "$podman_exists" ]; then
|
||||
if [ ! -x "$docker_exists" ] && [ ! -x "$podman_exists" ]; then
|
||||
echo -e "'docker' is not installed. \xE2\x9D\x8C"
|
||||
exit 1
|
||||
else
|
||||
@ -61,7 +61,7 @@ validate_prereqs() {
|
||||
DOCKER_CMD="podman"
|
||||
fi
|
||||
|
||||
if [ -x "$docker_compose_exists" ] && [ -x "$docker_compose_exists" ]; then
|
||||
if [ ! -x "$docker_compose_exists" ] && [ ! -x "$podman_compose_exists" ]; then
|
||||
echo -e "'docker-compose' is not installed. \xE2\x9D\x8C"
|
||||
exit 1
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user