Skip to content

Commit

Permalink
Fix bootstrap script to be headless
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Apr 3, 2017
1 parent 079530c commit 1db4157
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup/ubuntu/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ VERSION_DIR="/opt/redash/redash.${REDASH_VERSION}"
REDASH_TARBALL=/tmp/redash.tar.gz
FILES_BASE_URL=https://raw.githubusercontent.com/getredash/redash/${REDASH_BRANCH}/setup/ubuntu/files

cd /tmp/

verify_root() {
# Verify running as root:
if [ "$(id -u)" != "0" ]; then
Expand All @@ -43,8 +45,8 @@ install_system_packages() {
# SAML dependency
apt install -y xmlsec1
# Storage servers
apt install postgresql redis-server
apt install supervisor
apt install -y postgresql redis-server
apt install -y supervisor
}

create_directories() {
Expand All @@ -57,7 +59,7 @@ create_directories() {
fi

COOKIE_SECRET=$(pwgen -1s 32)
echo "export REDASH_COOKIE_SECRET=$COOKIE_SECRET" > /opt/redash/.env
echo "export REDASH_COOKIE_SECRET=$COOKIE_SECRET" >> /opt/redash/.env
}

extract_redash_sources() {
Expand All @@ -70,10 +72,8 @@ extract_redash_sources() {

install_python_packages() {
pip install --upgrade pip
# pip install -U setuptools==23.1.0
# TODO: venv?
# setproctitle is used by Celery for "pretty" process titles
pip install setproctitle
pip install setproctitle # setproctitle is used by Celery for "pretty" process titles
pip install -r /opt/redash/current/requirements.txt
pip install -r /opt/redash/current/requirements_all_ds.txt
}
Expand Down

0 comments on commit 1db4157

Please sign in to comment.