0 Replies Latest reply on Jun 5, 2007 6:10 PM by Jae Ellers

    Couple enhancements for esx-autoupdate.pl

    Jae Ellers Master

      here's a diff of some changes I made to dominic's great script.  The diff is against v1.1 available here: http://vmprofessional.com/material/esx-autopatch.pl

      I fixed the tabs so the layout lines up.

      I added deletion of the tarballs after they're extracted to save a lot of space when patching new systems

      194c194

      <     print "\t\t\[ok]\n"

      ---

          print "\t\t\t\t\[ok]\n"

      198c198

      <     print "\t\t\[ok]\n"

      ---

          print "\t\t\t\t\[ok]\n"

      203c203,206

      <   print "\t\t\[ok]\n";

      ---

        print "\t\t\t\[ok]\n";

        print "Deleting tarball $dir/$patch\{$_}\{name}.tgz";

        `rm -rf $dir/$patch\{$_}\{name}.tgz`;

        print "\t\[ok]\n";

      281c284

      <   print "\t\t\t\[ok]\n";

      ---

        print "\t\t\t\t\[ok]\n";

      283c286

      <   die "\t\t\t\[failed]\n"

      ---

        die "\t\t\t\t\[failed]\n"

      /code