mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-10-26 03:07:15 +03:00
Fix ssh host key permissions on Oracle Linux (#120)
This commit is contained in:
parent
ff9e190e8d
commit
f4e57410dc
@ -276,6 +276,10 @@ checkEnv() {
|
|||||||
req ip || { echo "ERROR: Missing ip"; return 1; }
|
req ip || { echo "ERROR: Missing ip"; return 1; }
|
||||||
req awk || { echo "ERROR: Missing awk"; return 1; }
|
req awk || { echo "ERROR: Missing awk"; return 1; }
|
||||||
req cut || req df || { echo "ERROR: Missing coreutils (cut, df)"; 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() {
|
infect() {
|
||||||
|
Loading…
Reference in New Issue
Block a user