From cedb8d690b8de35af85af5e8359c1e07eac58e97 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 1 Feb 2021 12:37:45 +0100 Subject: [PATCH] swap tabs for spaces --- scripts/containers/deploy.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/containers/deploy.sh b/scripts/containers/deploy.sh index 45fdde20..4b7c3fc9 100644 --- a/scripts/containers/deploy.sh +++ b/scripts/containers/deploy.sh @@ -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/" \