Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
87c241a3
Commit
87c241a3
authored
Dec 14, 2000
by
Leigh B. Stoller
Browse files
Add a /proj/images directory for OS image files.
parent
96d85647
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/mkprojdir
View file @
87c241a3
...
...
@@ -102,8 +102,18 @@ if (! chown($uid, $gid, "$PROJROOT/$pid/exp")) {
die
("
Could not chown
$PROJROOT
/
$pid
/exp to
$uid
/
$gid
: $!
\n
");
}
if
(
!
mkdir
("
$PROJROOT
/
$pid
/images
",
0770
))
{
die
("
Could not make directory
$PROJROOT
/
$pid
/images: $!
\n
");
}
if
(
!
chmod
(
0770
,
"
$PROJROOT
/
$pid
/images
"))
{
die
("
Could not chmod directory
$PROJROOT
/
$pid
/images: $!
\n
");
}
if
(
!
chown
(
$uid
,
$gid
,
"
$PROJROOT
/
$pid
/images
"))
{
die
("
Could not chown
$PROJROOT
/
$pid
/images to
$uid
/
$gid
: $!
\n
");
}
#
#
Make a few subdirs. If this gets long, make it a loop
.
#
Create a tftp directory for oskit kernels
.
#
if
(
!
mkdir
("
$TFTPROOT
/proj/
$pid
",
0770
))
{
die
("
Could not make directory
$TFTPROOT
/proj/
$pid
: $!
\n
");
...
...
Write
Preview
Supports
Markdown
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