aboutsummaryrefslogtreecommitdiff
path: root/scripts/provision
blob: 5a04a468dfad36eb5b95839c0b39569cfa7a7bbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
# Provisioner
#

# Parameters
DIRNAME="`dirname $0`"

# Basic dependencies
DEPENDENCIES="mkdocs apache2 python3-pip pandoc"

# Dependenicies for genesis-get
DEPENDENCIES="$DEPENDENCIES tor python3-requests python3-bs4 python3-socks python3-pybtex"

# PyPI dependencies
DEPENDENCIES_PIP="mkdocs-bibtex mkdocs-material mkdocs-awesome-pages-plugin mkdocs-static-i18n"

# Ensure an up-to-date system
sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean

# Install dependencies
sudo apt install -y $DEPENDENCIES

# Install python dependencies
pip3 install --break-system-packages $DEPENDENCIES_PIP