1492.1.35
by Aaron Peachey
add run_local.sh bash script to run USC with a local django rnr-server |
1 |
#!/bin/sh
|
2 |
||
3 |
export SOFTWARE_CENTER_REVIEWS_HOST="http://127.0.0.1:8000/reviews/api/1.0" |
|
4 |
export SOFTWARE_CENTER_FORCE_NON_SSL=1 |
|
2677.1.3
by Gary Lasker
disable certs checking when using the script run_local.sh |
5 |
export SOFTWARE_CENTER_FORCE_DISABLE_CERTS_CHECK=1 |
1492.1.35
by Aaron Peachey
add run_local.sh bash script to run USC with a local django rnr-server |
6 |
|
7 |
# sso
|
|
8 |
export USSOC_SERVICE_URL="https://login.staging.ubuntu.com/api/1.0" |
|
9 |
pkill -f ubuntu-sso-login |
|
10 |
python /usr/lib/ubuntu-sso-client/ubuntu-sso-login &
|
|
11 |
||
12 |
# s-c
|
|
2114.2.4
by Michael Vogt
run_local.sh: add : only if there is a pythonpath already |
13 |
if [ -n "$PYTHONPATH" ]; then |
14 |
export PYTHONPATH=$(pwd):$PYTHONPATH |
|
15 |
else
|
|
16 |
export PYTHONPATH=$(pwd) |
|
17 |
fi
|
|
18 |
||
1798.1.1
by Alex Eftimie
temporary fix for run_local, where u-s-c is not installed |
19 |
|
20 |
if [ ! -d "./build" ]; then |
|
21 |
echo "Please run: 'python setup.py build' before $0" |
|
22 |
fi
|
|
23 |
||
3302.1.1
by Rodney Dawes
Move the installed scripts to bin/ sub-directory. |
24 |
./bin/software-center $@
|