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

    A little SQL please....

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    6
    1.1k
    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
      Jim Graczyk
      last edited by

      Server
      • FOG Version: v1.5.0 RC-8 v16 Working Branch
      • OS: CEntOS 7
      Description

      I’m having a problem with the GUI on the working branch (see version above). The GUI cannot change the Protected checkbox. I’m not seeing any responses to the bug report I posted in the Dev area, so I was hoping to get some SQL help in this area. I need to be able to upload some images that are set as Protected. I believe I need to change some value in a table for each of these to unprotected in order for a machine to be able to upload and replace the image stored in FOG.

      Can anyone provide the SQL statements needed to do this, since I can’t do it thru the GUI at present?

      All help is much appreciated.

      Jim

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

        @jim-graczyk Just so you know the developers are on an extended holiday right now so their response is going to be a bit slow right now.

        Let me see if I can work up the sql commands you need. Its pretty easy I just need to find the right fields.

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

          Here you go.

          1. Login to the database with this command
            mysql -u root fog
          2. Use this command to list all of your images. You will need the exact image name for the next command.
            select imageID,imageName,imageProtect from images;
          3. To change the setting run this command. imageProtect=0 to turn it off imageProtect=1 to enable, <exact_imageName> is taken from the select statment.
            update images set imageProtect=0 where imageName="<exact_imageName>";

          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!

          J 1 Reply Last reply Reply Quote 2
          • J
            Jim Graczyk @george1421
            last edited by

            @george1421 Thanks very much. Trying this as soon as I can.

            Jim

            1 Reply Last reply Reply Quote 0
            • Wayne WorkmanW
              Wayne Workman
              last edited by Wayne Workman

              George’s method will work, but It’d be easier to just set all images to unprotected:

              mysql -D fog
              update images set imageProtect=0;
              quit
              

              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!
              Daily Clean Installation Results:
              https://fogtesting.fogproject.us/
              FOG Reporting:
              https://fog-external-reporting-results.fogproject.us/

              J 1 Reply Last reply Reply Quote 0
              • J
                Jim Graczyk @Wayne Workman
                last edited by

                @wayne-workman Thanks for the help. Just wanted to post this as Solved. Checkboxes now work in the Web UI.

                Jim

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

                149

                Online

                12.0k

                Users

                17.3k

                Topics

                155.2k

                Posts
                Copyright © 2012-2024 FOG Project