diff options
author | Christian Pointner <equinox@helsinki.at> | 2011-07-20 21:23:31 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2011-07-20 21:23:31 (GMT) |
commit | 5e335c04f01174267c8a25754e52529eb4de75fc (patch) | |
tree | 5ce6358bb427965ac5bb37bdaf25ab489ae447f5 | |
parent | 991fc06672f58291edc3f239e32257b050f176a7 (diff) |
fixed rhimport-dn user handling
git-svn-id: https://svn.helsinki.at/rhimport/trunk@79 7c65635b-ec39-4f67-a626-873dbafdd612
-rwxr-xr-x | rhimport-dn | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rhimport-dn b/rhimport-dn index bf98e81..bf72584 100755 --- a/rhimport-dn +++ b/rhimport-dn @@ -39,10 +39,8 @@ my $DBPW = "lldriven"; my $DB = "rivendell"; -my $luser = `/usr/bin/id -un`; -$luser =~ s/\n//; -($luser eq "equinox") or die "You are not allowed to use this script\n"; -my $user = "autoimport"; +my $user = `/usr/bin/id -un`; +$user =~ s/\n//; my $group = "democracyn"; my $dbh = DBI->connect("DBI:mysql:$DB:$DBHOST","$DBUSER","$DBPW") or die "Database Error: $DBI::errstr"; |