install-rdmo.sh 648 Bytes
Newer Older
olaf michaelis's avatar
olaf michaelis committed
1
2
3
4
#!/bin/bash

source /opt/ve.sh

5

6
if [[ $(pip freeze | grep -Poc "^rdmo==") == "0" ]]; then
olaf michaelis's avatar
olaf michaelis committed
7

8
9
10
11
    pip install --upgrade pip
    pip install --upgrade wheel
    pip install --upgrade setuptools
    pip install psycopg2
olaf michaelis's avatar
olaf michaelis committed
12

13
    pip install rdmo
olaf michaelis's avatar
olaf michaelis committed
14

15
16
    git clone ${RDMO_APP_REPO} ${RDMO_APP}
    cp -f /tmp/template_local.py ${RDMO_APP}/config/settings/local.py
17
    cp -f /tmp/wsgi.py ${RDMO_APP}/config/wsgi.py
18
19
20
21
22
23
24
25
26

    cd ${RDMO_APP}
    python manage.py makemigrations
    python manage.py migrate
    python manage.py download_vendor_files
    python manage.py collectstatic --no-input
else
    echo "Won't do anything because RDMO is already installed."
fi