Update revoke-cleaner.pl

This commit is contained in:
nu11secur1ty 2023-01-17 14:28:38 +02:00 committed by GitHub
parent 296bcfbf36
commit 9c39b4be45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ print "$issued";
## Cleaning ## Cleaning
my $ENVPKI = "/etc/openvpn/easy-rsa/pki/index.txt"; my $ENVPKI = "/etc/openvpn/easy-rsa/pki/index.txt";
print "Preparing for cleaning...\n"; print "Preparing for cleaning...\n";
print "Please, choose the username...\n"; print "Please, choose the username, or if you are not really sure, just press Enter to exit the cleaner...\n";
chomp (my $username = <STDIN>); chomp (my $username = <STDIN>);
my $cleaner = `sed -i '/$username/d' $ENVPKI`; my $cleaner = `sed -i '/$username/d' $ENVPKI`;