• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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 Aug 29, 2017, 1:02 PM

    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

    G 1 Reply Last reply Aug 29, 2017, 1:36 PM Reply Quote 0
    • G
      george1421 Moderator @Jim Graczyk
      last edited by Aug 29, 2017, 1:36 PM

      @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
      • G
        george1421 Moderator
        last edited by george1421 Aug 29, 2017, 9:46 AM Aug 29, 2017, 1:41 PM

        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 Aug 29, 2017, 3:44 PM Reply Quote 2
        • J
          Jim Graczyk @george1421
          last edited by Aug 29, 2017, 3:44 PM

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

          Jim

          1 Reply Last reply Reply Quote 0
          • W
            Wayne Workman
            last edited by Wayne Workman Aug 29, 2017, 6:56 PM Aug 30, 2017, 12:55 AM

            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 Sep 4, 2017, 4:30 PM Reply Quote 0
            • J
              Jim Graczyk @Wayne Workman
              last edited by Sep 4, 2017, 4:30 PM

              @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
              1 / 1
              • First post
                5/6
                Last post

              183

              Online

              12.1k

              Users

              17.3k

              Topics

              155.4k

              Posts
              Copyright © 2012-2024 FOG Project