Commit 304f65dc authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Make sure the ltlogs directory gets created 775 so the next person can

make changes. Also set the umask to 0002 for the loghole run.
parent b36d344a
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# All rights reserved.
#
use strict;
......@@ -63,6 +63,11 @@ delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
$| = 1; #Turn off line buffering on output
#
# Make sure log files get created so project members can delete them!
#
umask(0002);
#
# Parse command arguments. Once we return from getopts, all that should be
# left are the required arguments.
......@@ -437,6 +442,7 @@ sub run_loghole {
system("rm -rf $ltlogs");
system("mkdir -p $ltlogs");
system("chmod 775 $ltlogs");
system("$LOGHOLE -e $pid/$eid sync -n -l $ltlogs -r /var/emulab/logs ".
"> $ltlogs/loghole.out 2>&1");
}
......
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