Skip to content
Snippets Groups Projects
Commit cd038b34 authored by Srikanth Raju's avatar Srikanth Raju Committed by Leigh B Stoller
Browse files

Make dir if they dont exist

parent 3c0a7bfe
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,11 @@ my $zipper = "/usr/local/bin/imagezip";
my $uploader = "/usr/local/etc/emulab/frisupload";
my $error = 0;
my $WORK_BASE = $IMPORT_BASE + "/import_temp/";
my $IN_BASE = $IMPORT_BASE + "/indir";
my $WORK_BASE = $IMPORT_BASE . "/import_temp/";
my $IN_BASE = $IMPORT_BASE . "/indir/";
mkdir $WORK_BASE unless -d $WORK_BASE;
mkdir $IN_BASE unless -d $IN_BASE;
for my $path (qw#/usr/local/bin /usr/bin#) {
if (-e "$path/sudo") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment