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
482dedd3
Commit
482dedd3
authored
Oct 16, 2013
by
Dan Reading
Browse files
make sure su privelages not needed to read inventory file
parent
7dfa4d8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/checknode
View file @
482dedd3
...
...
@@ -120,11 +120,11 @@ postprocessing()
# end XXX
# have needed dirs ?
[[
!
-d
${
projdir
}
/
$host
]]
&&
(
mkdir
-p
${
projdir
}
/
$host
;
chmod
g
+
x
${
projdir
}
/
$host
)
[[
!
-d
${
projdir
}
/
$host
/.tbdb
]]
&&
(
mkdir
-p
${
projdir
}
/
$host
/.tbdb
;
chmod
g
+
x
${
projdir
}
/
$host
/.tbdb
)
[[
!
-d
${
projdir
}
/
$host
/.full
]]
&&
(
mkdir
-p
${
projdir
}
/
$host
/.full
;
chmod
g
+
x
${
projdir
}
/
$host
/.full
)
[[
!
-d
${
projdir
}
/
$host
/.diff
]]
&&
(
mkdir
-p
${
projdir
}
/
$host
/.diff
;
chmod
g
+
x
${
projdir
}
/
$host
/.diff
)
[[
!
-d
${
projdir
}
/
$host
/.tmcc
]]
&&
(
mkdir
-p
${
projdir
}
/
$host
/.tmcc
;
chmod
g
+
x
${
projdir
}
/
$host
/.tmcc
)
[[
!
-d
${
projdir
}
/
$host
]]
&&
(
mkdir
-p
${
projdir
}
/
$host
;
chmod
g
o+r
x
${
projdir
}
/
$host
)
[[
!
-d
${
projdir
}
/
$host
/.tbdb
]]
&&
(
mkdir
-p
${
projdir
}
/
$host
/.tbdb
;
chmod
g
o+r
x
${
projdir
}
/
$host
/.tbdb
)
[[
!
-d
${
projdir
}
/
$host
/.full
]]
&&
(
mkdir
-p
${
projdir
}
/
$host
/.full
;
chmod
g
o+r
x
${
projdir
}
/
$host
/.full
)
[[
!
-d
${
projdir
}
/
$host
/.diff
]]
&&
(
mkdir
-p
${
projdir
}
/
$host
/.diff
;
chmod
g
o+r
x
${
projdir
}
/
$host
/.diff
)
[[
!
-d
${
projdir
}
/
$host
/.tmcc
]]
&&
(
mkdir
-p
${
projdir
}
/
$host
/.tmcc
;
chmod
g
o+r
x
${
projdir
}
/
$host
/.tmcc
)
# copy over the files including timestamps
cp
/tmp/nodecheck.log.tb.new
${
projdir
}
/
$host
/.tbdb/
$timestamp
...
...
@@ -144,7 +144,7 @@ postprocessing()
cd
$owd
# make sure no sudo is needed for read
chmod
g+r
${
projdir
}
/
$host
/.
*
/
${
timestamp
}
chmod
g
o
+r
${
projdir
}
/
$host
/.
*
/
${
timestamp
}
fi
if
((
$check_flag
))
;
then
...
...
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