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

    Postdownload script error halts execution

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    5
    345
    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.
    • J
      jenzo
      last edited by

      Firstly to the devs and the support folks thanks for this amazing software! I got all the imaging setup and in use. Unfortunately I hit a snag on the next steps. After imaging, the fog.postdownload script throws errors about not being able to find /usr/share/fog/lib/funcs.sh
      Since the variables are undefined the calls to them in the successive scripts fail out and quit. This happens on physical machines, VMs, EFI and BIOS type image deployments. any help would be greatly appreciated I have been trying to fix this issue for over a day.

      alt text

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @jenzo Did you create the script in Windows using the common Notepad? Use an editor like Notepad++ and convert all the Windows new lines to Linux one!

        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
        • J
          jenzo
          last edited by

          I have searched the forums for a day but a new search today yielded a suggestion to save the postdownload scripts as LF/UNIX format. this was the solution.

          thx!

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @jenzo
            last edited by george1421

            @jenzo For your sanity, if you write bash scripts using windows use notepad++ ( https://notepad-plus-plus.org/ ) its an excellent cross platform text editor and won’t insert Ctrl-M at the end of each line like notepad does.

            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!

            1 Reply Last reply Reply Quote 0
            • J
              jenzo
              last edited by

              I was using notepad ++. I guess creating the files from scratch uses the windows CR EOL format. I switched them all to LF and will never have this insanity happen again!

              thx!

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

              137

              Online

              12.1k

              Users

              17.3k

              Topics

              155.3k

              Posts
              Copyright © 2012-2024 FOG Project