• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. olivierl
    3. Best
    O
    • Profile
    • Following 0
    • Followers 0
    • Topics 12
    • Posts 34
    • Best 2
    • Controversial 0
    • Groups 0

    Best posts made by olivierl

    • RE: erase of Exports File

      Hi
      In your script before add share it can be this

      if [ -f $nfsconfig ]
          then
                    if  [ $(grep -c "##FOG-SHARE-START##" $nfsconfig) -ne 0 ]
                         then
                                  sed -in  '/##FOG-SHARE-START##/,/##FOG-END-SHARE##/{//d;D}' $nfsconfig
                    fi
      fi
      

      And add this configureNFS()

      echo -e "##FOG-SHARE-START##\n$storageLocation *(ro,sync,no_wdelay,no_subtree_check,insecure_locks,no_root_squash,insecure,fsid=0)\n$storageLocation/dev *(rw,async,no_wdelay,no_subtree_check,no_root_squash,insecure,fsid=1)\n##FOG-END-SHARE##" >> "$nfsconfig";
      

      I am not tested for the moment

      Olivier

      posted in General
      O
      olivierl
    • RE: erase of Exports File

      Hi
      I have tested this norming and it’s worrking for my case.

      Olivier

      posted in General
      O
      olivierl
    • 1 / 1