Skip to content
Snippets Groups Projects
Commit 4c6da371 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Add user ID check (need to be 'mysqlens').

parent c7c6ca03
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,10 @@ if ( defined($opt_help) ) {
exit 0;
}
if ( scalar( getpwuid($<) ) ne 'mysqlens' ) {
die("You need to run this script as the 'mysqlens' user.\n");
}
my $input_file = shift(@ARGV);
if ( !defined($input_file) ) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment