From 4c6da37192bbecd39c37c5677aaa8bf06e8a80f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Thu, 12 Nov 2009 10:51:49 +0000 Subject: [PATCH] Add user ID check (need to be 'mysqlens'). --- misc-scripts/CopyDBoverServer.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc-scripts/CopyDBoverServer.pl b/misc-scripts/CopyDBoverServer.pl index db115c5993..2b33df7d4d 100755 --- a/misc-scripts/CopyDBoverServer.pl +++ b/misc-scripts/CopyDBoverServer.pl @@ -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) ) { -- GitLab