Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
1b3b7fa0
Commit
1b3b7fa0
authored
Jul 11, 2016
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uninstall edx-oauth2-provider and its kind
parent
276292aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
util/vagrant/upgrade.sh
+28
-0
No files found.
util/vagrant/upgrade.sh
View file @
1b3b7fa0
...
@@ -255,6 +255,32 @@ EOF
...
@@ -255,6 +255,32 @@ EOF
fi
fi
fi
fi
# Eucalyptus details
if
[[
$TARGET
==
*
eucalyptus
*
]]
;
then
echo
"Uninstall edx-oauth2-provider"
sudo
-u
edxapp /edx/bin/pip.edxapp uninstall
--disable-pip-version-check
-y
django-oauth2-provider edx-oauth2-provider
echo
"Upgrade the code"
cd
configuration/playbooks/vagrant
sudo
ansible-playbook
\
--inventory-file
=
localhost,
\
--connection
=
local
\
$SERVER_VARS
\
--extra-vars
=
"edx_platform_version=
$TARGET
"
\
--extra-vars
=
"xqueue_version=
$TARGET
"
\
--extra-vars
=
"migrate_db=no"
\
--skip-tags
=
"edxapp-sandbox,gather_static_assets"
\
vagrant-
$CONFIGURATION
-delta
.yml
cd
../../..
echo
"Migrate to fix oauth2_provider"
/edx/bin/edxapp-migrate-lms
--fake
oauth2_provider zero
/edx/bin/edxapp-migrate-lms
--fake-initial
fi
# Update to target.
echo
"Updating to final version of code"
echo
"Updating to final version of code"
cd
configuration/playbooks
cd
configuration/playbooks
echo
"edx_platform_version:
$TARGET
"
>
vars.yml
echo
"edx_platform_version:
$TARGET
"
>
vars.yml
...
@@ -270,6 +296,8 @@ sudo ansible-playbook \
...
@@ -270,6 +296,8 @@ sudo ansible-playbook \
vagrant-
$CONFIGURATION
.yml
vagrant-
$CONFIGURATION
.yml
cd
../..
cd
../..
# Post-upgrade work.
if
[[
$TARGET
==
*
dogwood
*
]]
;
then
if
[[
$TARGET
==
*
dogwood
*
]]
;
then
echo
"Running data fixup management commands"
echo
"Running data fixup management commands"
sudo
-u
$APPUSER
-E
/edx/bin/python.edxapp
\
sudo
-u
$APPUSER
-E
/edx/bin/python.edxapp
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment