I hereby claim:
- I am cgomezmendez on github.
- I am chrisgomez (https://keybase.io/chrisgomez) on keybase.
- I have a public key ASCW8UJGpE-_rBQ4FOw6PWjPdL3oPYqXG2-hT5mnk7Y6vAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
DOMAIN=$1 | |
mkdir "/var/websites/$1" | |
cp "/var/websites/dummy/index.html" "/var/websites/$1/index.html" | |
touch "/etc/nginx/sites-available/$1" | |
ln -s "/etc/nginx/sites-available/$1" "/etc/nginx/sites-enabled" | |
cp "/root/server-config.conf" "/etc/nginx/sites-available/$1" | |
sed -i "s/DOMAIN/$DOMAIN/g" "/etc/nginx/sites-available/$1" | |
service nginx reload |
Esta aplicacion no maneja en ningun momento datos sensibles del usuario. |