Unverified Commit ed0bc642 authored by Sarah Brofeldt's avatar Sarah Brofeldt Committed by GitHub
Browse files

Merge pull request #288466 from JorisBolsens/patch-2

nixos/kubernetes: don't delete the apitoken after its created
parents 3d695c17 6a11b7a7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -192,7 +192,8 @@ in
        mkdir -p "$(dirname "${certmgrAPITokenPath}")"
        if [ -f "${cfsslAPITokenPath}" ]; then
          ln -fs "${cfsslAPITokenPath}" "${certmgrAPITokenPath}"
        else
        elif [ ! -f "${certmgrAPITokenPath}" ]; then
          # Don't remove the token if it already exists
          install -m 600 /dev/null "${certmgrAPITokenPath}"
        fi
      ''