Skip to content

Instantly share code, notes, and snippets.

@juizmill
Created June 1, 2019 01:48
Show Gist options
  • Select an option

  • Save juizmill/4855e5f60df2d26cf136649e3e56b4fd to your computer and use it in GitHub Desktop.

Select an option

Save juizmill/4855e5f60df2d26cf136649e3e56b4fd to your computer and use it in GitHub Desktop.
Remove o nome x-powered-by do easyengine v4
#! /bin/bash
while :
do
read -p "Qual é o nome do site: " _SITENAME
if [[ $_SITENAME == "" ]]; then
echo "O nome do site não pode esta em branco!"
continue
else
break
fi
done
sudo docker cp services_global-nginx-proxy_1:/etc/nginx/nginx.conf /opt/easyengine/services/nginx-proxy/nginx.conf
sudo sed -i 's/include \/version.conf;.*/#include \/version.conf;/g' /opt/easyengine/services/nginx-proxy/nginx.conf
sudo docker cp /opt/easyengine/services/nginx-proxy/nginx.conf services_global-nginx-proxy_1:/etc/nginx/nginx.conf
sudo ee service restart nginx-proxy
sudo ee site restart ${_SITENAME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment