swap tabs for spaces
This commit is contained in:
parent
883cf631e2
commit
cedb8d690b
|
@ -50,12 +50,12 @@ function install_orchestra () {
|
|||
if [[ -d $python_path/orchestra ]]; then
|
||||
run sudo rm -fr $python_path/orchestra
|
||||
fi
|
||||
orch_version=$(python3 -c "from orchestra import get_version; print(get_version());" 2> /dev/null || echo '')
|
||||
orch_version=$(python3 -c "from orchestra import get_version; print(get_version());" 2> /dev/null || echo '')
|
||||
if [[ ! $orch_version ]]; then
|
||||
# First Orchestra installation
|
||||
run sudo mkdir -p /usr/share/man/man1
|
||||
run sudo mkdir -p /usr/share/man/man7
|
||||
run sudo apt-get update
|
||||
run sudo mkdir -p /usr/share/man/man1
|
||||
run sudo mkdir -p /usr/share/man/man7
|
||||
run sudo apt-get update
|
||||
run sudo apt-get -y install git python3-pip
|
||||
surun "git clone $repo $home/django-orchestra" || {
|
||||
# Finishing partial installation
|
||||
|
@ -68,7 +68,7 @@ function install_orchestra () {
|
|||
if [[ -L /usr/local/bin/orchestra-admin || -f /usr/local/bin/orchestra-admin ]]; then
|
||||
run sudo rm -f /usr/local/bin/{orchestra-admin,orchestra-beat}
|
||||
fi
|
||||
run sudo pip3 install -e $home/django-orchestra
|
||||
run sudo pip3 install -e $home/django-orchestra
|
||||
run sudo orchestra-admin install_requirements --testing
|
||||
else
|
||||
# Install from pip
|
||||
|
@ -87,7 +87,7 @@ function setup_database () {
|
|||
if [[ $dev ]]; then
|
||||
# Speeding up tests, don't do this in production!
|
||||
. /usr/share/postgresql-common/init.d-functions
|
||||
pg_version=$(psql --version | head -n1 | awk '{print $3}' | sed -e "s,\..*,,")
|
||||
pg_version=$(psql --version | head -n1 | awk '{print $3}' | sed -e "s,\..*,,")
|
||||
sudo sed -i \
|
||||
-e "s/^#fsync =\s*.*/fsync = off/" \
|
||||
-e "s/^#full_page_writes =\s*.*/full_page_writes = off/" \
|
||||
|
|
Loading…
Reference in a new issue