protonmail-bridge-nextcoud-.../install.sh

23 lines
530 B
Bash
Raw Normal View History

2020-04-15 05:31:20 +00:00
#!/bin/bash
2020-04-15 07:17:01 +00:00
set -ex
source /protonmail/releaserc
2020-04-15 05:31:20 +00:00
# Install dependents
apt-get update
2020-04-15 07:17:01 +00:00
apt-get install -y --no-install-recommends socat pass
# Download repacked deb
apt-get install -y wget
wget -O /protonmail/protonmail.deb https://github.com/shenxn/protonmail-bridge-docker/releases/download/${RELEASE}/${DEB_FILE}
apt-get purge -y wget
apt-get autoremove -y
2020-04-15 05:31:20 +00:00
# Install protonmail bridge
apt-get install -y --no-install-recommends /protonmail/protonmail.deb
# Cleanup
rm -rf /var/lib/apt/lists/*
rm /protonmail/protonmail.deb