From a47596e2b423dac2c72ff5f9ddca88ed7e08ed10 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Tue, 28 Nov 2017 10:56:59 +0100 Subject: [PATCH] Clarify comments and tasks for Pandora installation --- 50-pandora.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/50-pandora.sh b/50-pandora.sh index 27c6b3c..4128530 100755 --- a/50-pandora.sh +++ b/50-pandora.sh @@ -2,15 +2,15 @@ SOURCE_DIR=$(realpath $(dirname "${0}")) -# Add pandora repository +# Add Pandora repository echo "deb http://ppa.launchpad.net/j/pandora/ubuntu zesty main" > /etc/apt/sources.list.d/pandora.list apt-key add ${SOURCE_DIR}/pandora/pandora.gpg +apt-get -y update # Install packages -apt-get -y update apt-get -y --no-install-recommends install ffmpeg ghostscript gpac imagemagick mkvtoolnix oxframe poppler-utils python-ox python3-html5lib python3-lxml python3-numpy python3-ox python3-pil python3-pip python3-psycopg2 python3-pyinotify python3-setuptools python3-simplejson python3-virtualenv rabbitmq-server virtualenv youtube-dl -# Clone git repositories +# Clone Pandora git repositories git clone --depth 1 https://git.0x2620.org/pandora.git /srv/pandora git clone --depth 1 https://git.0x2620.org/oxjs.git /srv/pandora/static/oxjs git clone --depth 1 https://git.0x2620.org/oxtimelines.git /srv/pandora/src/oxtimelines @@ -22,7 +22,7 @@ cp ${SOURCE_DIR}/pandora/srv/pandora/static/oxjs/source/Ox/js/Constants.js /srv/ cp ${SOURCE_DIR}/pandora/srv/pandora/static/oxjs/source/Ox/json/locale.cs.json /srv/pandora/static/oxjs/source/Ox/json/locale.cs.json cp ${SOURCE_DIR}/pandora/srv/pandora/static/oxjs/source/UI/json/locale.cs.json /srv/pandora/static/oxjs/source/UI/json/locale.cs.json -# Create python virtualenv +# Create Python virtualenv virtualenv --system-site-packages -p /usr/bin/python3 /srv/pandora cd /srv/pandora/src/oxtimelines && /srv/pandora/bin/python setup.py develop /srv/pandora/bin/pip install -r /srv/pandora/requirements.txt @@ -46,7 +46,7 @@ cp ${SOURCE_DIR}/pandora/srv/pandora/pandora/config.jsonc /srv/pandora/pandora/c cp /srv/pandora/pandora/gunicorn_config.py.in /srv/pandora/pandora/gunicorn_config.py envsubst <${SOURCE_DIR}/pandora/srv/pandora/pandora/local_settings.py >/srv/pandora/pandora/local_settings.py -# Create OS user +# Create Pandora OS user adduser --system --group --home /srv/pandora --shell /bin/false pandora chown -R pandora:pandora /srv/pandora