Update ipv4_dhcp_ipv6_static_interfaces.cfg

This commit is contained in:
Molly Lau 2023-11-14 03:19:29 +09:00 committed by GitHub
parent aeab69abaa
commit c4c670892a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,6 @@ runcmd:
- systemctl daemon-reload
- update-rc.d ssh enable
- kill -9 $(ps -ef | grep '/usr/sbin/sshd' | gawk '$0 !~/grep/ {print $2}' | tr -s '\n' ' ')
- systemctl restart sshd
- ufw allow sshPORT
- sed -i 's/#$nrconf{restart} = '"'"'i'"'"';/$nrconf{restart} = '"'"'a'"'"';/g' /etc/needrestart/needrestart.conf
- sed -i "s/#\$nrconf{kernelhints} = -1;/\$nrconf{kernelhints} = -1;/g" /etc/needrestart/needrestart.conf
@ -77,5 +76,6 @@ runcmd:
- update-rc.d fail2ban enable
- /etc/init.d/fail2ban restart
- grub-mkconfig -o /boot/grub/grub.cfg
- systemctl restart sshd
- rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
- touch /etc/cloud/cloud-init.disabled