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
|
if [[ -d $python_path/orchestra ]]; then
|
||||||
run sudo rm -fr $python_path/orchestra
|
run sudo rm -fr $python_path/orchestra
|
||||||
fi
|
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
|
if [[ ! $orch_version ]]; then
|
||||||
# First Orchestra installation
|
# First Orchestra installation
|
||||||
run sudo mkdir -p /usr/share/man/man1
|
run sudo mkdir -p /usr/share/man/man1
|
||||||
run sudo mkdir -p /usr/share/man/man7
|
run sudo mkdir -p /usr/share/man/man7
|
||||||
run sudo apt-get update
|
run sudo apt-get update
|
||||||
run sudo apt-get -y install git python3-pip
|
run sudo apt-get -y install git python3-pip
|
||||||
surun "git clone $repo $home/django-orchestra" || {
|
surun "git clone $repo $home/django-orchestra" || {
|
||||||
# Finishing partial installation
|
# Finishing partial installation
|
||||||
|
@ -68,7 +68,7 @@ function install_orchestra () {
|
||||||
if [[ -L /usr/local/bin/orchestra-admin || -f /usr/local/bin/orchestra-admin ]]; then
|
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}
|
run sudo rm -f /usr/local/bin/{orchestra-admin,orchestra-beat}
|
||||||
fi
|
fi
|
||||||
run sudo pip3 install -e $home/django-orchestra
|
run sudo pip3 install -e $home/django-orchestra
|
||||||
run sudo orchestra-admin install_requirements --testing
|
run sudo orchestra-admin install_requirements --testing
|
||||||
else
|
else
|
||||||
# Install from pip
|
# Install from pip
|
||||||
|
@ -87,7 +87,7 @@ function setup_database () {
|
||||||
if [[ $dev ]]; then
|
if [[ $dev ]]; then
|
||||||
# Speeding up tests, don't do this in production!
|
# Speeding up tests, don't do this in production!
|
||||||
. /usr/share/postgresql-common/init.d-functions
|
. /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 \
|
sudo sed -i \
|
||||||
-e "s/^#fsync =\s*.*/fsync = off/" \
|
-e "s/^#fsync =\s*.*/fsync = off/" \
|
||||||
-e "s/^#full_page_writes =\s*.*/full_page_writes = off/" \
|
-e "s/^#full_page_writes =\s*.*/full_page_writes = off/" \
|
||||||
|
|
Loading…
Reference in New Issue