added helptexs to the installation script (#3603)

This commit is contained in:
Frank Elsinga 2023-08-19 21:01:37 +02:00 committed by GitHub
parent 9564550d5f
commit 8945316ce6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 4 deletions

View File

@ -189,13 +189,15 @@ if (type == "local") {
bash("check=$(git --version)"); bash("check=$(git --version)");
if (check == "") { if (check == "") {
error = 1; error = 1;
println("Error: git is missing"); println("Error: git is not found!");
println("help: an installation guide is available at https://git-scm.com/book/en/v2/Getting-Started-Installing-Git");
} }
bash("check=$(node -v)"); bash("check=$(node -v)");
if (check == "") { if (check == "") {
error = 1; error = 1;
println("Error: node is missing"); println("Error: node is not found");
println("help: an installation guide is available at https://nodejs.org/en/download");
} }
if (error > 0) { if (error > 0) {
@ -216,6 +218,7 @@ if (type == "local") {
bash("check=$(pm2 --version)"); bash("check=$(pm2 --version)");
if (check == "") { if (check == "") {
println("Error: pm2 is not found!"); println("Error: pm2 is not found!");
println("help: an installation guide is available at https://pm2.keymetrics.io/docs/usage/quick-start/");
bash("exit 1"); bash("exit 1");
} }
@ -232,6 +235,7 @@ if (type == "local") {
bash("check=$(docker -v)"); bash("check=$(docker -v)");
if (check == "") { if (check == "") {
println("Error: docker is not found!"); println("Error: docker is not found!");
println("help: an installation guide is available at https://docs.docker.com/desktop/");
bash("exit 1"); bash("exit 1");
} }
@ -239,6 +243,7 @@ if (type == "local") {
bash("if [[ \"$check\" == *\"Is the docker daemon running\"* ]]; then bash("if [[ \"$check\" == *\"Is the docker daemon running\"* ]]; then
\"echo\" \"Error: docker is not running\" \"echo\" \"Error: docker is not running\"
\"echo\" \"help: a troubleshooting guide is available at https://docs.docker.com/config/daemon/troubleshoot/\"
\"exit\" \"1\" \"exit\" \"1\"
fi"); fi");

View File

@ -156,12 +156,14 @@ fi
check=$(git --version) check=$(git --version)
if [ "$check" == "" ]; then if [ "$check" == "" ]; then
error=$((1)) error=$((1))
"echo" "-e" "Error: git is missing" "echo" "-e" "Error: git is not found!"
"echo" "-e" "help: an installation guide is available at https://git-scm.com/book/en/v2/Getting-Started-Installing-Git"
fi fi
check=$(node -v) check=$(node -v)
if [ "$check" == "" ]; then if [ "$check" == "" ]; then
error=$((1)) error=$((1))
"echo" "-e" "Error: node is missing" "echo" "-e" "Error: node is not found"
"echo" "-e" "help: an installation guide is available at https://nodejs.org/en/download"
fi fi
if [ $(($error > 0)) == 1 ]; then if [ $(($error > 0)) == 1 ]; then
"echo" "-e" "Please install above missing software" "echo" "-e" "Please install above missing software"
@ -180,6 +182,7 @@ fi
check=$(pm2 --version) check=$(pm2 --version)
if [ "$check" == "" ]; then if [ "$check" == "" ]; then
"echo" "-e" "Error: pm2 is not found!" "echo" "-e" "Error: pm2 is not found!"
"echo" "-e" "help: an installation guide is available at https://pm2.keymetrics.io/docs/usage/quick-start/"
exit 1 exit 1
fi fi
mkdir -p $installPath mkdir -p $installPath
@ -192,11 +195,13 @@ else
check=$(docker -v) check=$(docker -v)
if [ "$check" == "" ]; then if [ "$check" == "" ]; then
"echo" "-e" "Error: docker is not found!" "echo" "-e" "Error: docker is not found!"
"echo" "-e" "help: an installation guide is available at https://docs.docker.com/desktop/"
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" "Error: docker is not running" "echo" "Error: docker is not running"
"echo" "help: a troubleshooting guide is available at https://docs.docker.com/config/daemon/troubleshoot/"
"exit" "1" "exit" "1"
fi fi
if [ "$3" != "" ]; then if [ "$3" != "" ]; then