SHOW:
|
|
- or go back to the newest paste.
| 1 | #!/bin/sh | |
| 2 | ||
| 3 | - | yum install -y httpd |
| 3 | + | sudo apt-get install -y apache2 |
| 4 | - | name=$(curl http://169.254.169.254/latest/meta-data/instance-id) |
| 4 | + | sudo sh -c 'echo "<html><body>Creation date: $(date) </body></html>" > /var/www/html/index.html' |
| 5 | - | echo "<html><body>I am $name</body></html>" > /var/www/html/index.html |
| 5 | + | sudo /etc/init.d/apache2 start |