Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
e09b62e3
Commit
e09b62e3
authored
Jun 22, 2017
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More nits related to root's .ssh dir.
parent
ef076c85
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
clientside/tmcc/common/config/rc.localize
clientside/tmcc/common/config/rc.localize
+2
-1
clientside/tmcc/freebsd/prepare
clientside/tmcc/freebsd/prepare
+1
-0
clientside/tmcc/linux/prepare
clientside/tmcc/linux/prepare
+1
-0
No files found.
clientside/tmcc/common/config/rc.localize
View file @
e09b62e3
...
...
@@ -222,7 +222,8 @@ sub doboot()
}
close
(
NKEYS
);
if
(
!
-
e
$authkeysold
&&
system
("
cp -pf
$authkeys
$authkeysold
"))
{
if
(
-
e
$authkeys
&&
!
-
e
$authkeysold
&&
system
("
cp -pf
$authkeys
$authkeysold
"))
{
warning
("
Could not backup
$authkeys
");
}
if
(
system
("
mv -f
$authkeysnew
$authkeys
"))
{
...
...
clientside/tmcc/freebsd/prepare
View file @
e09b62e3
...
...
@@ -260,6 +260,7 @@ if (! -x "$BINDIR/rc/rc.localize" || system("$BINDIR/rc/rc.localize boot")) {
system(
"
mv
$ROOTSSHDIR
.
bak
$ROOTSSHDIR
"
);
die(
"
Could
not
clean
root
.
ssh
directory
"
);
}
system(
"
rm
-
rf
$ROOTSSHDIR
.
bak
"
);
print
"
Cleaning
mail
spool
files
...\
n
"
;
system(
"
rm
-
rf
$MAILDIR
/*
"
);
...
...
clientside/tmcc/linux/prepare
View file @
e09b62e3
...
...
@@ -366,6 +366,7 @@ if (! -x "$BINDIR/rc/rc.localize" || system("$BINDIR/rc/rc.localize boot")) {
system(
"
mv
$ROOTSSHDIR
.
bak
$ROOTSSHDIR
"
);
die(
"
Could
not
clean
root
.
ssh
directory
"
);
}
system(
"
rm
-
rf
$ROOTSSHDIR
.
bak
"
);
print
"
Cleaning
mail
spool
files
...\
n
"
;
system(
"
rm
-
rf
$MAILDIR
/*
"
);
...
...
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