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

    fog.updateunattend

    Scheduled Pinned Locked Moved
    Windows Problems
    3
    4
    447
    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.
    • T
      tigervince30
      last edited by

      Hello, i would like to use fog.updateunattend but i have an error:
      syntax error unexpected token ‘[[’
      Still, i copy and paste the file in your tutorial and i just changed the first line to change the password.
      I checked the path of the unattended file andupdate unattend.png it is the right path…

      you can see my attached file to have more informationScreenshot_20200430_114203_com.huawei.himovie.overseas.jpg

      thank you for your help

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

        bash for loops are:

        for unattend in $unattends; do
            [[ ! $unattend ]] && return
        .....
        done
        

        OR

        for unattend in $unattends
        do
            [[ ! $unattend ]] && return
        ......
        done
        

        You have:

        for unattend in $unattends
            [[ ! $unattend ]] && return
        ......
        done
        

        Notice you’re missing the “DO” after ther for statement.

        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 1
        • george1421G
          george1421 Moderator
          last edited by george1421

          I just checked and the tutorial does have the do properly placed: https://forums.fogproject.org/topic/11126/using-fog-postinstall-scripts-for-windows-driver-injection-2017-ed

          #!/bin/bash
          hostadpwd="ADPASSWDHERRE"; #only downside to this method- this is the plain ad password
          unattends=$(find /ntfs/ -iname "unattend.xml")
          for unattend in $unattends; do
              [[ ! -f $unattend ]] && return
              dots "Preparing Sysprep File"
          

          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
          • T
            tigervince30
            last edited by

            really weird…i copied and pasted a few times…I tried again and you were right…i feel stupid…:(
            thank you so much!!!you are so helpful…:)

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

            316

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project