diff --git a/home/private_dot_ssh/endlessh/run_onchange_after_endlessh.tmpl b/home/private_dot_ssh/endlessh/run_onchange_after_endlessh.tmpl index 9a0397dd..df644cb3 100644 --- a/home/private_dot_ssh/endlessh/run_onchange_after_endlessh.tmpl +++ b/home/private_dot_ssh/endlessh/run_onchange_after_endlessh.tmpl @@ -7,7 +7,7 @@ {{ includeTemplate "universal/logg" }} ### Update /etc/endlessh/config if environment is not WSL -if [[ ! "$(grep Microsoft /proc/version)" ]]; then +if [[ ! "$(grep Microsoft /proc/version > /dev/null)" ]]; then if command -v endlessh > /dev/null; then if [ -d /etc/endlessh ]; then logg info 'Copying ~/.ssh/endlessh/config to /etc/endlessh/config' diff --git a/home/private_dot_ssh/fail2ban/run_onchange_after_fail2ban.tmpl b/home/private_dot_ssh/fail2ban/run_onchange_after_fail2ban.tmpl index 8a98dcbe..af48e722 100644 --- a/home/private_dot_ssh/fail2ban/run_onchange_after_fail2ban.tmpl +++ b/home/private_dot_ssh/fail2ban/run_onchange_after_fail2ban.tmpl @@ -22,7 +22,7 @@ function restartFail2Ban() { } ### Update the jail.local file if environment is not WSL -if [[ ! "$(grep Microsoft /proc/version)" ]]; then +if [[ ! "$(grep Microsoft /proc/version > /dev/null)" ]]; then if [ -d /etc/fail2ban ]; then logg info 'Copying ~/.ssh/fail2ban/jail.local to /etc/fail2ban/jail.local' sudo cp -f "$HOME/.ssh/fail2ban/jail.local" /etc/fail2ban/jail.local diff --git a/home/private_dot_ssh/system/run_onchange_after_sshd.tmpl b/home/private_dot_ssh/system/run_onchange_after_sshd.tmpl index 617cb22f..4a5a6a21 100644 --- a/home/private_dot_ssh/system/run_onchange_after_sshd.tmpl +++ b/home/private_dot_ssh/system/run_onchange_after_sshd.tmpl @@ -8,7 +8,7 @@ {{ includeTemplate "universal/logg" }} ### Update /etc/ssh/sshd_config if environment is not WSL -if [[ ! "$(grep Microsoft /proc/version)" ]]; then +if [[ ! "$(grep Microsoft /proc/version > /dev/null)" ]]; then if [ -d /etc/ssh ]; then logg info 'Copying ~/.ssh/system/banner to /etc/ssh/banner' sudo cp -f "$HOME/.ssh/system/banner" /etc/ssh/banner