mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 05:01:55 +03:00
14 lines
224 B
Bash
14 lines
224 B
Bash
#!/bin/bash
|
|
|
|
# sleep until instance is ready
|
|
until [[ -f /var/lib/cloud/instance/boot-finished ]]; do
|
|
sleep 1
|
|
done
|
|
|
|
# install nginx
|
|
apt-get update
|
|
apt-get -y install nginx
|
|
|
|
# make sure nginx is started
|
|
service nginx start
|