mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-14 05:04:51 +08:00
Update ipv4_static_ipv6_static_interfaces.cfg
This commit is contained in:
parent
e0c7f5ba60
commit
1ca25741db
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,6 @@ runcmd:
|
||||||
- systemctl daemon-reload
|
- systemctl daemon-reload
|
||||||
- update-rc.d ssh enable
|
- update-rc.d ssh enable
|
||||||
- kill -9 $(ps -ef | grep '/usr/sbin/sshd' | gawk '$0 !~/grep/ {print $2}' | tr -s '\n' ' ')
|
- kill -9 $(ps -ef | grep '/usr/sbin/sshd' | gawk '$0 !~/grep/ {print $2}' | tr -s '\n' ' ')
|
||||||
- systemctl restart sshd
|
|
||||||
- ufw allow sshPORT
|
- ufw allow sshPORT
|
||||||
- sed -i 's/#$nrconf{restart} = '"'"'i'"'"';/$nrconf{restart} = '"'"'a'"'"';/g' /etc/needrestart/needrestart.conf
|
- 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
|
- sed -i "s/#\$nrconf{kernelhints} = -1;/\$nrconf{kernelhints} = -1;/g" /etc/needrestart/needrestart.conf
|
||||||
|
@ -80,5 +79,6 @@ runcmd:
|
||||||
- update-rc.d fail2ban enable
|
- update-rc.d fail2ban enable
|
||||||
- /etc/init.d/fail2ban restart
|
- /etc/init.d/fail2ban restart
|
||||||
- grub-mkconfig -o /boot/grub/grub.cfg
|
- grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
|
- systemctl restart sshd
|
||||||
- rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
|
- rm -rf /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
|
||||||
- touch /etc/cloud/cloud-init.disabled
|
- touch /etc/cloud/cloud-init.disabled
|
||||||
|
|
Loading…
Reference in a new issue