Commit 3417625d authored by Russ Fish's avatar Russ Fish

Make rc.localize work on Cygwin for the root authorized_keys file.

parent 84cb3199
......@@ -83,7 +83,7 @@ if (MFS()) {
"rc.hostnames", "rc.keys", "rc.tarfiles", "rc.rpms");
}
elsif (WINDOWS()) {
@bootscripts = ("rc.misc", ##"rc.localize",
@bootscripts = ("rc.misc", "rc.localize",
"rc.keys", "rc.mounts",
"rc.accounts", "rc.topomap",
"rc.route", "rc.ifconfig",
......
......@@ -121,8 +121,9 @@ sub doboot()
# up old authkeys to authkeys2 file, which is also used by openssh sshd.
#
if (@pubkeys) {
my $authkeys = "/root/.ssh/authorized_keys";
my $authkeys2 = "/root/.ssh/authorized_keys2";
my $authdir = (WINDOWS() ? "/sshkeys/root" : "/root/.ssh");
my $authkeys = $authdir . "/authorized_keys";
my $authkeys2 = $authkeys . "2";
if (-e "$authkeys") {
system("cp -pf $authkeys $authkeys2") == 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment