add some sudo's to dashboard setup, so that the script can handle consecutive runs of stack.sh without hitting permisisons issues
This commit is contained in:
parent
b6838a1cec
commit
5d4843cfeb
1 changed files with 5 additions and 5 deletions
10
stack.sh
10
stack.sh
|
@ -140,16 +140,16 @@ cp $DIR/files/screenrc ~/.screenrc
|
||||||
# Dash currently imports quantum even if you aren't using it. Instead
|
# Dash currently imports quantum even if you aren't using it. Instead
|
||||||
# of installing quantum we can create a simple module that will pass the
|
# of installing quantum we can create a simple module that will pass the
|
||||||
# initial imports
|
# initial imports
|
||||||
mkdir $DASH_DIR/openstack-dashboard/quantum || true
|
sudo mkdir -p $DASH_DIR/openstack-dashboard/quantum || true
|
||||||
touch $DASH_DIR/openstack-dashboard/quantum/__init__.py
|
sudo touch $DASH_DIR/openstack-dashboard/quantum/__init__.py
|
||||||
touch $DASH_DIR/openstack-dashboard/quantum/client.py
|
sudo touch $DASH_DIR/openstack-dashboard/quantum/client.py
|
||||||
|
|
||||||
cd $DASH_DIR/openstack-dashboard
|
cd $DASH_DIR/openstack-dashboard
|
||||||
cp local/local_settings.py.example local/local_settings.py
|
sudo cp local/local_settings.py.example local/local_settings.py
|
||||||
dashboard/manage.py syncdb
|
dashboard/manage.py syncdb
|
||||||
|
|
||||||
# create an empty directory that apache uses as docroot
|
# create an empty directory that apache uses as docroot
|
||||||
mkdir $DASH_DIR/.blackhole
|
sudo mkdir -p $DASH_DIR/.blackhole
|
||||||
|
|
||||||
## Configure apache's 000-default to run dashboard
|
## Configure apache's 000-default to run dashboard
|
||||||
sudo cp $DIR/files/000-default.template /etc/apache2/sites-enabled/000-default
|
sudo cp $DIR/files/000-default.template /etc/apache2/sites-enabled/000-default
|
||||||
|
|
Loading…
Reference in a new issue