We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5edbf44 commit 3ef3182Copy full SHA for 3ef3182
scripts/before_install.sh
@@ -1,5 +1,6 @@
1
#!/bin/bash
2
3
+# Install Apache on Amazon Linux or Ubuntu (only if not previously installed)
4
if which yum &>/dev/null; then
5
yum update -y
6
yum install -y httpd
@@ -14,3 +15,6 @@ elif which apt-get &>/dev/null; then
14
15
echo "apache2 already installed, skipping!"
16
fi
17
18
+
19
+# Make sure /tmp/myweb doesn't exist so that the test in AfterInstall is really valid
20
+[ -d /tmp/myweb ] && rm -Rf /tmp/myweb
0 commit comments