Skip to content

Commit 2c9bd8b

Browse files
Fix issue in the script to make this lab autohostable using ADS
- Grant permission to shell script configure.sh to configure apache server.
1 parent 2e1e315 commit 2c9bd8b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

scripts/configure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sed -i '/<\/VirtualHost>/i \
2-
<Directory /var/www/html> \
2+
<Directory /var/www/> \
33
AddHandler mod_python .py \
44
PythonHandler mod_python.publisher \
55
PythonDebug On \

scripts/labspec.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,17 @@
110110
"hosting": "dedicated",
111111
"installer": ["sudo apt-get update",
112112
"sudo apt-get install -y php5 apache2 gcc g++ libapache2-mod-python libapache2-mod-wsgi",
113+
"chmod 777 ./configure.sh",
113114
"sh configure.sh",
114115
"service apache2 restart"
115116
],
116117
"lab_actions": {
117118
"backup": [],
118119
"clean": [],
119120
"init": ["mv /var/www/index.html index.html.default",
120-
"cp -r ../build/* /var/www/",
121-
"chmod -R 777 /var/www/*"
122-
],
121+
"cp -r ../build/* /var/www/",
122+
"chmod -R 777 /var/www/*"
123+
],
123124
"pause": [],
124125
"publish": [],
125126
"restore": [],

0 commit comments

Comments
 (0)