Sha256: 27e37501c99dc3540e8a64b4d872cd521e91117085962dd78fda9fe24e4b496c
Contents?: true
Size: 858 Bytes
Versions: 829
Compression:
Stored size: 858 Bytes
Contents
#!/bin/bash hostname=$1 echo 'Updating /etc/sudoers' if [[ ! -e '/etc/sudoers.d/jenkins' ]]; then sudo /bin/bash --login -c 'echo "jenkins ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/jenkins' fi sudo sed -i -e 's/^Defaults.*requiretty/# Defaults requiretty/g' /etc/sudoers sudo /bin/bash --login -c 'echo "Defaults:admin !requiretty" >> /etc/sudoers' sudo sed -i -e 's/^%sudo.+ALL=(ALL:ALL) ALL/%sudo.+ALL=(ALL:ALL) NOPASSWD:ALL/g' /etc/sudoers echo "Updating FQDN: ${hostname}" cat /etc/hosts | grep "${hostname}" || sudo sed "s/127.0.0.1/127.0.0.1 ${hostname}/g" -i /etc/hosts hostname | grep "${hostname}" || sudo hostname "${hostname}" # Listens on TCP 80 & 443 by default which collides w/ Apache # TCP 80 Collision sudo systemctl disable nginx sudo systemctl stop nginx # TCP 443 Collision sudo systemctl disable inetsim sudo systemctl stop inetsim
Version data entries
829 entries across 829 versions & 1 rubygems