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
e09b62e3
Commit
e09b62e3
authored
Jun 22, 2017
by
Mike Hibler
Browse files
More nits related to root's .ssh dir.
parent
ef076c85
Changes
3
Hide whitespace changes
Inline
Side-by-side
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
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