Merge pull request #80 from samply/fix/enroll

Rely on beam-enroll message for existing key
This commit is contained in:
Martin Lablans 2023-05-10 14:32:51 +02:00 committed by GitHub
commit 62a7e61685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -97,10 +97,6 @@ case "$ACTION" in
;;
enroll)
loadVars
if [ -e $PRIVATEKEYFILENAME ]; then
log ERROR "Private key already exists at $PRIVATEKEYFILENAME. Please delete first to proceed."
exit 1
fi
docker run --rm -ti -v /etc/bridgehead/pki:/etc/bridgehead/pki samply/beam-enroll:latest --output-file $PRIVATEKEYFILENAME --proxy-id $PROXY_ID --admin-email $SUPPORT_EMAIL
chmod 600 $PRIVATEKEYFILENAME
;;