Update 3 files

- /home/private_dot_ssh/system/run_onchange_after_sshd.tmpl
- /home/private_dot_ssh/fail2ban/run_onchange_after_fail2ban.tmpl
- /home/private_dot_ssh/endlessh/run_onchange_after_endlessh.tmpl
This commit is contained in:
Brian Zalewski 2023-02-16 02:46:46 +00:00
parent afe1216d57
commit 58361748f6
3 changed files with 3 additions and 3 deletions

View file

@ -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'

View file

@ -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

View file

@ -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