Browse files

Run apt-get update before installing apache to avoid 404 errors

  • Loading branch information...
1 parent a3d0a82 commit 5fefb5211c6e9994369f6debaa607ab198e3dd41 @priteau priteau committed Dec 12, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 cloudinitd/ec2bootpgm.py
View
3 cloudinitd/ec2bootpgm.py
@@ -3,6 +3,9 @@
import sys
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'"
os.system(cmd)

0 comments on commit 5fefb52

Please sign in to comment.