This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-task.git


The following commit(s) were added to refs/heads/main by this push:
     new 6b14255  fixed messages
6b14255 is described below

commit 6b142551444b44398635f8d616a934ca5464649b
Author: Michele Sciabarra <[email protected]>
AuthorDate: Thu Jun 26 09:39:59 2025 +0200

    fixed messages
---
 setup/opsfile.yml | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/setup/opsfile.yml b/setup/opsfile.yml
index 79ff14b..1ee82a3 100644
--- a/setup/opsfile.yml
+++ b/setup/opsfile.yml
@@ -87,21 +87,27 @@ tasks:
     desc: install miniops
     cmds:
       - docker -v || die "Docker is not installed. Please install Docker 
Desktop first."
-      - docker info 2>&1 >/dev/null || die "Docker is not running. Please 
start Docker Desktop first."
+      - docker info 2>/dev/null >/dev/null || die "Docker is not running. 
Please start Docker Desktop first."
       - |
-        if curl -s http://miniops.me >/dev/null
+        if curl -sL http://miniops.me >/dev/null 2>/dev/null
         then
-          echo "Apache OpenServerless mini is already installed."
-          echo "Login with: ops ide login devel http://miniops.me";
-          echo "You can find the password in .ops/devel.password in your home 
directory"
-          echo "Uninstall it with ops setup devcluster --uninstall"
+          if 
+          curl -sL http://miniops.me/api/info 2>/dev/null | jq  -r 
.description | grep OpenWhisk >/dev/null
+          then
+            echo "Apache OpenServerless mini is already installed."
+            echo "Login with: ops ide login devel http://miniops.me";
+            echo "You can find the password in .ops/devel.password in your 
home directory"
+            echo "If it is unwanted, you can uninstall it with: ops setup 
docker delete"
+          else
+            echo "Something is already running as a local webserver, please 
remove it before installing miniops."
+          fi
           false
         fi
       - $OPS config slim
       - $OPS config apihost miniops.me --protocol=http
       - $OPS setup devcluster
-      - $OPS setup nuvolaris add-user
       - $OPS setup kubernetes streamer deploy
+      - $OPS setup nuvolaris add-user
 
   devcluster:
     vars:

Reply via email to