Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Run apt-get update before installing apache to avoid 404 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
priteau committed Dec 12, 2012
1 parent a3d0a82 commit 5fefb52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloudinitd/ec2bootpgm.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import sys import sys
import os import os


cmd = "sudo sh -c 'env DEBIAN_FRONTEND=noninteractive apt-get update'"
os.system(cmd)

cmd = "sudo sh -c 'env DEBIAN_FRONTEND=noninteractive apt-get -q -y install apache2'" cmd = "sudo sh -c 'env DEBIAN_FRONTEND=noninteractive apt-get -q -y install apache2'"
os.system(cmd) os.system(cmd)


Expand Down

0 comments on commit 5fefb52

Please sign in to comment.