forked from Mirrors/nixos-infect
Fix ssh host key permissions on Oracle Linux (#120)
This commit is contained in:
parent
ff9e190e8d
commit
f4e57410dc
1 changed files with 4 additions and 0 deletions
|
@ -276,6 +276,10 @@ checkEnv() {
|
|||
req ip || { echo "ERROR: Missing ip"; return 1; }
|
||||
req awk || { echo "ERROR: Missing awk"; return 1; }
|
||||
req cut || req df || { echo "ERROR: Missing coreutils (cut, df)"; return 1; }
|
||||
|
||||
# On some versions of Oracle Linux these have the wrong permissions,
|
||||
# which stops sshd from starting when NixOS boots
|
||||
chmod 600 /etc/ssh/ssh_host_*_key
|
||||
}
|
||||
|
||||
infect() {
|
||||
|
|
Loading…
Reference in a new issue