Browse code

add some sudo's to dashboard setup, so that the script can handle consecutive runs of stack.sh without hitting permisisons issues

Anthony Young authored on 2011/09/14 09:22:18
Showing 1 changed files
... ...
@@ -140,16 +140,16 @@ cp $DIR/files/screenrc ~/.screenrc
140 140
 # Dash currently imports quantum even if you aren't using it.  Instead 
141 141
 # of installing quantum we can create a simple module that will pass the 
142 142
 # initial imports
143
-mkdir $DASH_DIR/openstack-dashboard/quantum || true
144
-touch $DASH_DIR/openstack-dashboard/quantum/__init__.py
145
-touch $DASH_DIR/openstack-dashboard/quantum/client.py
143
+sudo mkdir -p  $DASH_DIR/openstack-dashboard/quantum || true
144
+sudo touch $DASH_DIR/openstack-dashboard/quantum/__init__.py
145
+sudo touch $DASH_DIR/openstack-dashboard/quantum/client.py
146 146
 
147 147
 cd $DASH_DIR/openstack-dashboard
148
-cp local/local_settings.py.example local/local_settings.py
148
+sudo cp local/local_settings.py.example local/local_settings.py
149 149
 dashboard/manage.py syncdb
150 150
 
151 151
 # create an empty directory that apache uses as docroot
152
-mkdir $DASH_DIR/.blackhole
152
+sudo mkdir -p $DASH_DIR/.blackhole
153 153
 
154 154
 ## Configure apache's 000-default to run dashboard
155 155
 sudo cp $DIR/files/000-default.template /etc/apache2/sites-enabled/000-default