Commit a71bd898 authored by Robert Ricci's avatar Robert Ricci

Allow root to run this script, so that we can do it from crontab.

parent 656dedcc
......@@ -60,7 +60,7 @@ $ENV{'RSYNC_RSH'} = "ssh -q -oBatchMode=yes -oStrictHostKeyChecking=no " .
my $RSYNC = "/usr/local/bin/rsync";
if (!TBAdmin()) {
if (!(($> == 0) || TBAdmin())) {
die "Sorry, only admins can use this script!\n";
}
......
Markdown is supported
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