improv. copy
authorEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Mon, 1 Feb 2016 11:46:18 +0000 (12:46 +0100)
committerEduardo Ramos Testillano <eduardo.ramos.testillano@ericsson.com>
Mon, 1 Feb 2016 11:46:18 +0000 (12:46 +0100)
example/diameter/launcher/DEPLOY.sh

index 8913695..fe35371 100755 (executable)
@@ -190,9 +190,9 @@ fi
 if [ "$STACKMGMT_EXEC" = "$STACKMGMT_EXEC_installed" ]
 then
   ln -s $STACKMGMT_EXEC_installed $DPATH/stacks/stack-mgmt
-else
-  cp $STACKMGMT_EXEC $DPATH/stacks/stack-mgmt
 fi
+# Copy binary just in case: 
+[ ! -f $DPATH/stacks/stack-mgmt ] && cp $STACKMGMT_EXEC $DPATH/stacks/stack-mgmt
 
 cp -rL $DEPLOYMENTS_DIR/* $DPATH
 cp $SETUPS_DIR/*xml $DPATH/stacks