|
|
@ -1,7 +1,7 @@
|
|
|
|
# install.sh is generated by ./extra/install.batsh, do not modify it directly.
|
|
|
|
# install.sh is generated by ./extra/install.batsh, do not modify it directly.
|
|
|
|
# "npm run compile-install-script" to compile install.sh
|
|
|
|
# "npm run compile-install-script" to compile install.sh
|
|
|
|
# The command is working on Windows PowerShell and Docker for Windows only.
|
|
|
|
# The command is working on Windows PowerShell and Docker for Windows only.
|
|
|
|
# curl -o uptime-kuma-install.sh https://raw.githubusercontent.com/louislam/uptime-kuma/master/install.sh && sudo bash uptime-kuma-install.sh
|
|
|
|
# curl -o kuma_install.sh https://raw.githubusercontent.com/louislam/uptime-kuma/master/install.sh && sudo bash kuma_install.sh
|
|
|
|
"echo" "-e" "====================="
|
|
|
|
"echo" "-e" "====================="
|
|
|
|
"echo" "-e" "Uptime Kuma Installer"
|
|
|
|
"echo" "-e" "Uptime Kuma Installer"
|
|
|
|
"echo" "-e" "====================="
|
|
|
|
"echo" "-e" "====================="
|
|
|
@ -175,10 +175,10 @@ else
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
check=$(docker info)
|
|
|
|
check=$(docker info)
|
|
|
|
if [ "$check" == *Is the docker daemon running* ]; then
|
|
|
|
if [["$check" == *"Is the docker daemon running"*]]; then
|
|
|
|
"echo" "-e" "Error: docker is not running!"
|
|
|
|
echo "Error: docker is not running"
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
if [ "$3" != "" ]; then
|
|
|
|
if [ "$3" != "" ]; then
|
|
|
|
port="$3"
|
|
|
|
port="$3"
|
|
|
|
else
|
|
|
|
else
|
|
|
|