Merge pull request #288466 from JorisBolsens/patch-2
nixos/kubernetes: don't delete the apitoken after its created
This commit is contained in:
commit
ed0bc642b7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue