eg-updater requires build-staff to build staff client
authorBill Erickson <berickxx@gmail.com>
Fri, 31 Jul 2015 15:49:41 +0000 (11:49 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
And repair action name error build-eg-staff -> build-staff

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/admin-scripts/eg-updater.sh

index ca11098..1dfd4b6 100755 (executable)
@@ -63,12 +63,12 @@ function usage {
                 update-eg
                 deploy-eg
                 update-web
-                build-eg-staff
+                build-staff
                 start-eg
                 start-apache
                 attach
                 stop-all (detach,stop-apache,stop-eg) 
-                deploy-all (update-eg,deploy-eg,build-eg-staff)
+                deploy-all (update-eg,deploy-eg)
                 start-all (start-eg,start-apache)
             
             -p 
@@ -173,7 +173,7 @@ function inspect_params {
     fi
 
     if [[ "$ACTIONS" =~ "deploy-all" ]]; then
-        ACTIONS="$ACTIONS,update-eg,deploy-eg,build-eg-staff";
+        ACTIONS="$ACTIONS,update-eg,deploy-eg";
     fi
 
     if [[ "$ACTIONS" =~ "start-all" ]]; then
@@ -548,7 +548,11 @@ if [[ "$ACTIONS" =~ "update-web" ]]; then
 fi
 
 if [[ "$ACTIONS" =~ "build-staff" ]]; then
-    build_staff_client
+    if ! [[ "$ACTIONS" =~ "deploy-eg" ]]; then
+        # if deploy-eg is set, the staff client is built
+        # during the deploy step.
+        build_staff_client
+    fi
 fi
 
 if [[ "$ACTIONS" =~ "start-eg" ]]; then