mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
install.sh - check docker is running
This commit is contained in:
parent
bb0af35d47
commit
c9aa110f6c
@ -209,6 +209,13 @@ if (type == "local") {
|
|||||||
bash("exit 1");
|
bash("exit 1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bash("check=$(docker info)");
|
||||||
|
|
||||||
|
if (check == bash("*Is the docker daemon running*")) {
|
||||||
|
println("Error: docker is not running!");
|
||||||
|
bash("exit 1");
|
||||||
|
}
|
||||||
|
|
||||||
if ("$3" != "") {
|
if ("$3" != "") {
|
||||||
port = "$3";
|
port = "$3";
|
||||||
} else {
|
} else {
|
||||||
|
@ -173,6 +173,11 @@ else
|
|||||||
if [ "$check" == "" ]; then
|
if [ "$check" == "" ]; then
|
||||||
"echo" "-e" "Error: docker is not found!"
|
"echo" "-e" "Error: docker is not found!"
|
||||||
exit 1
|
exit 1
|
||||||
|
fi
|
||||||
|
check=$(docker info)
|
||||||
|
if [ "$check" == *Is the docker daemon running* ]; then
|
||||||
|
"echo" "-e" "Error: docker is not running!"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ "$3" != "" ]; then
|
if [ "$3" != "" ]; then
|
||||||
port="$3"
|
port="$3"
|
||||||
|
Loading…
Reference in New Issue
Block a user