mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
Merge 16aa19187b
into ffa9dc5d67
This commit is contained in:
commit
ea0620d673
@ -4,19 +4,20 @@ source setup/functions.sh
|
|||||||
|
|
||||||
echo "Installing Mail-in-a-Box system management daemon..."
|
echo "Installing Mail-in-a-Box system management daemon..."
|
||||||
|
|
||||||
# Switching python 2 boto to package manager's, not pypi's.
|
apt_install python3-flask links duplicity libyaml-dev python3-dnspython python3-dateutil
|
||||||
if [ -f /usr/local/lib/python2.7/dist-packages/boto/__init__.py ]; then hide_output pip uninstall -y boto; fi
|
|
||||||
|
|
||||||
# duplicity uses python 2 so we need to use the python 2 package of boto
|
# These packages are required for pip to install cryptography.
|
||||||
# build-essential libssl-dev libffi-dev python3-dev: Required to pip install cryptography.
|
apt_install build-essential libssl-dev libffi-dev python3-dev python-pip
|
||||||
apt_install python3-flask links duplicity python-boto libyaml-dev python3-dnspython python3-dateutil \
|
|
||||||
build-essential libssl-dev libffi-dev python3-dev python-pip
|
|
||||||
|
|
||||||
# Install other Python packages. The first line is the packages that Josh maintains himself!
|
# Install other Python packages. The first line is the packages that Josh maintains himself!
|
||||||
|
# Fixme: email_validator is repeated in setup/questions.sh
|
||||||
hide_output pip3 install --upgrade \
|
hide_output pip3 install --upgrade \
|
||||||
rtyaml "email_validator>=1.0.0" "free_tls_certificates>=0.1.3" \
|
rtyaml "email_validator>=1.0.0" "free_tls_certificates>=0.1.3" \
|
||||||
"idna>=2.0.0" "cryptography>=1.0.2" boto psutil
|
"idna>=2.0.0" "cryptography>=1.0.2" boto psutil
|
||||||
# email_validator is repeated in setup/questions.sh
|
|
||||||
|
# Duplicity uses python2 and requires boto. Thus we need to use the python 2 package of boto.
|
||||||
|
# The apt-get package lags behind and misses some important bug fixes.
|
||||||
|
hide_output pip install --upgrade boto
|
||||||
|
|
||||||
# Create a backup directory and a random key for encrypting backups.
|
# Create a backup directory and a random key for encrypting backups.
|
||||||
mkdir -p $STORAGE_ROOT/backup
|
mkdir -p $STORAGE_ROOT/backup
|
||||||
|
Loading…
Reference in New Issue
Block a user