diff --git a/var/www/admin/credstore.php b/var/www/admin/credstore.php index 7d53fe2b..e3a04412 100644 --- a/var/www/admin/credstore.php +++ b/var/www/admin/credstore.php @@ -108,6 +108,8 @@ Success:'; echo shell_exec("/usr/lib/vmware-vcli/apps/general/credstore_admin.pl --credstore /var/www/.vmware/credstore/vicredentials.xml add --server " . $_POST["input-vcenter"] . " --username " . $_POST["input-username"] . " --password " . escapeshellcmd($_POST["input-password"])); + // Once newly vCenter has been added, we want the inventory to be updated + shell_exec("sudo /bin/bash /var/www/scripts/updateInventory.sh"); echo ' '; echo ''; }