Use the absolute path for the session backend

Now the session backend NAME did not use the absolute path,
caused the dashboard error:
OperationalError: no such table: django_session

This patch add the absolute path for the session backend NAME.

Change-Id: I9ecaae5bf3a61dd9f646f3e566630a58bc9db315
Closes-Bug: #1598378
This commit is contained in:
zhurong 2016-07-02 10:09:16 +00:00
parent 75bab1fa8b
commit 89952c17b9
1 changed files with 1 additions and 0 deletions

View File

@ -449,6 +449,7 @@ function configure_local_settings_py() {
# Change Murano dashboard settings
sed -e "s/\(^\s*MURANO_USE_GLARE\s*=\).*$/\1 $murano_use_glare/" -i $HORIZON_DIR/openstack_dashboard/local/local_settings.d/_50_murano.py
sed -e "s%\(^\s*MURANO_REPO_URL\s*=\).*$%\1 '$MURANO_REPOSITORY_URL'%" -i $HORIZON_DIR/openstack_dashboard/local/local_settings.d/_50_murano.py
sed -e "s%\(^\s*'NAME':\).*$%\1 os.path.join('$MURANO_DASHBOARD_DIR', 'openstack-dashboard.sqlite')%" -i $HORIZON_DIR/openstack_dashboard/local/local_settings.d/_50_murano.py
echo -e $"\nMETADATA_CACHE_DIR = '$MURANO_DASHBOARD_CACHE_DIR'" | sudo tee -a $HORIZON_DIR/openstack_dashboard/local/local_settings.d/_50_murano.py
}