mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Install single-file, pip, readability as background tasks.
This commit is contained in:
parent
1d4f61c7bd
commit
a9560992c5
1 changed files with 6 additions and 3 deletions
|
|
@ -16,17 +16,20 @@ apt install -y apt-transport-https ca-certificates curl gnupg-agent gcc libpq-de
|
|||
# Install Archiving tools.
|
||||
SF_VERSION="1.0.15"
|
||||
if [ "$(single-file --version)" != "${SF_VERSION}" ]; then
|
||||
sudo npm i -g single-file-cli@1.0.15 & # Install in background.
|
||||
sudo npm i -g single-file-cli@${SF_VERSION} & # Install in background.
|
||||
fi
|
||||
readability-extractor --version || npm install -g 'git+https://github.com/pirate/readability-extractor'
|
||||
readability-extractor --version || npm install -g 'git+https://github.com/pirate/readability-extractor' &
|
||||
|
||||
# Setup the virtual environment that main.py expects
|
||||
pip3 --version || (
|
||||
# If no pip, install pip
|
||||
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py &&
|
||||
python3 /tmp/get-pip.py
|
||||
python3 /tmp/get-pip.py &
|
||||
)
|
||||
|
||||
# Wait for single-file, readability, pip3.
|
||||
wait $(jobs -p)
|
||||
|
||||
# Build React app in background job.
|
||||
[[ ! -f /usr/local/bin/serve || ! -f /usr/bin/serve ]] && npm -g install serve
|
||||
cd /opt/wrolpi/app || exit 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue