Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
1dc78daa
Commit
1dc78daa
authored
Oct 25, 2011
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not croak if expwork dir is already created.
parent
4057c99f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
tbsetup/mkexpdir.in
tbsetup/mkexpdir.in
+8
-9
No files found.
tbsetup/mkexpdir.in
View file @
1dc78daa
...
...
@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2009 University of Utah and the Flux Group.
# Copyright (c) 2000-2009
, 2011
University of Utah and the Flux Group.
# All rights reserved.
#
use
English
;
...
...
@@ -144,14 +144,13 @@ $experiment->Update({"path" => "$eiddir"}) == 0 or
#
# Create the working directory.
#
if
(
-
e
$workdir
)
{
fatal
("
$workdir
already exists!
",
-
1
);
}
if
(
!
mkdir
(
$workdir
,
0775
))
{
fatal
("
Could not create
$workdir
: $!
");
}
if
(
!
chown
(
$UID
,
$unix_gid
,
"
$workdir
"))
{
fatal
("
Could not chown
$workdir
to
$UID
/
$unix_gid
: $!
");
if
(
!
-
e
$workdir
)
{
if
(
!
mkdir
(
$workdir
,
0775
))
{
fatal
("
Could not create
$workdir
: $!
");
}
if
(
!
chown
(
$UID
,
$unix_gid
,
"
$workdir
"))
{
fatal
("
Could not chown
$workdir
to
$UID
/
$unix_gid
: $!
");
}
}
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment