• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    what makes an image, call for a fog.postdownload script?

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    2
    6
    132
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gribbler
      last edited by

      Is there something that makes an image, when deployed, call for the fog.postdownload script to run?

      I have some that do run them and others that don’t but it’s not my server so I’m not sure what was done to make it work that way. Thanks

      1 Reply Last reply Reply Quote 0
      • G
        gribbler
        last edited by

        Sorry - I should’ve mentioned - Rocky9 client and server for the most part. Updated to latest versions.

        Thanks

        Tom ElliottT 1 Reply Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott @gribbler
          last edited by

          @gribbler Only deploy based imaging tasks runs postdownload.

          deploy with snapins
          deploy without snapins
          deploy debug

          I think are the only three.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          G 2 Replies Last reply Reply Quote 0
          • G
            gribbler @Tom Elliott
            last edited by gribbler

            @Tom-Elliott said in what makes an image, call for a fog.postdownload script?:

            deploy based imaging tasks runs postdownload.

            And if they don’t run for some images, how would i debug?
            I installed the OS, booted the host, registered it, imaged it… but I can’t get it if I try to deploy back to the same or another host to run the postdownload script and I’m struggling to understand why. Thanks @Tom-Elliott

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @gribbler
              last edited by

              @gribbler the post download script will run for all deploy tasks. If there’s a specific post download script you’ve written you would have to provide those here so we could attempt to figure out why it worked for this but not that. I have no idea what your scripts look like or what they’re doing.

              In your scripts you can do debugPause statements and you’d have to run your task in debug mode to see it on the fly.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • G
                gribbler @Tom Elliott
                last edited by

                @Tom-Elliott

                Ok thanks @Tom-Elliott - that helped me. I had a script that was failing and trying to find logs for it was difficult to get a location that it could write to, that I could find after the deployment, and i couldn’t see if it was erroring or whatever… running in deploy debug was really helpful. Thanks.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post

                320

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project