From 5feebcc04f5545c8e6133eec0485f3097b0423d5 Mon Sep 17 00:00:00 2001 From: hahn <axel.hahn@iml.unibe.ch> Date: Wed, 29 May 2019 11:25:40 +0200 Subject: [PATCH] Update components font-awesome (change icon syntax from fontawesome 4 --> 5), jquery action button (build, deploy, ...) have the color of the target phase Update appmonitor class files ix checkssh test with multilple targets --- public_html/deployment/pages/act_checkssh.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public_html/deployment/pages/act_checkssh.php b/public_html/deployment/pages/act_checkssh.php index 0c9f2d41..49c0aa76 100644 --- a/public_html/deployment/pages/act_checkssh.php +++ b/public_html/deployment/pages/act_checkssh.php @@ -87,9 +87,11 @@ foreach ($oPrj1->getProjects() as $sPrj) { $sDeployhosts = array_key_exists("hosts", $aPrjConfig["phases"][$sPhase]) ? $aPrjConfig["phases"][$sPhase]["hosts"] : ""; if ($sDeployhosts) { - $sOut .= '<li>' . $sDeployhosts . '<br>'; - $sCmd = 'ssh ' . $aConfig["installPackages"]["user"] . '@' . $sDeployhosts . ' echo "hello from \`hostname -f\`"'; - $sOut.= myExec($sCmd); + foreach(explode(',', $sDeployhosts) as $sSingleSshTarget){ + $sOut .= '<li>' . $sSingleSshTarget . '<br>'; + $sCmd = 'ssh ' . $aConfig["installPackages"]["user"] . '@' . $sSingleSshTarget . ' echo "hello from \`hostname -f\`"'; + $sOut.= myExec($sCmd); + } } $sOut.='</ul>'; } -- GitLab