yum remove epel-release yum clean all sudo yum -y install yum-utils sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional sudo yum install certbot sudo yum install certbot-nginx
Źródło: https://stackoverflow.com/questions/53545436/no-package-certbot-available
mkdir /root/backup cp /etc/selinux/config /root/backup sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
echo "changing umask for users" for user in $(awk -F: '( $3 >= 500 ){print $1}' /etc/passwd); do echo "umask 022" >> /home/$user/.bashrc done echo "umask check" for user in $(awk -F: '( $3 >= 500 ){print $1}' /etc/passwd); do printf "%-10s" "$user" ; su -c 'umask' -l $user 2>/dev/null done
mkdir /root/backup/etc cp /etc/sysctl.conf /root/backup/etc/ echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf mkdir /root/backup/etc/modprobe.d/ cp /etc/modprobe.d/blacklist.conf /root/backup/etc/modprobe.d/ echo "blacklist ipv6" >> /etc/modprobe.d/blacklist.conf mkdir /root/backup/etc/sysconfig/ cp /etc/sysconfig/network /root/backup/etc/sysconfig/ echo "NETWORKING_IPV6=no" >> /etc/sysconfig/network #powtorzyć dla każdego interfejsu mkdir /root/backup/etc/sysconfig/network-scripts/ cp /etc/sysconfig/network-scripts/ifcfg-eth* /root/backup/etc/sysconfig/network-scripts/ echo "IPV6INIT=no" >> /etc/sysconfig/network-scripts/ifcfg-eth0 echo "IPV6INIT=no" >> /etc/sysconfig/network-scripts/ifcfg-eth1