Skip to content

Commit affc4c5

Browse files
committed
add update option to ppa command
1 parent 45bb3bd commit affc4c5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

install.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ function check_distro() {
9595
# currently only for Ubuntu 16.04
9696
if [[ -r /etc/os-release ]]; then
9797
. /etc/os-release
98-
if [[ "${VERSION_ID}" != "16.04" ]]; then
99-
echo "This script only supports ubuntu 16.04 LTS, exiting."
98+
if [[ "${VERSION_ID}" != "16.04" ]] && [[ "${VERSION_ID}" != "18.04" ]] ; then
99+
echo "This script only supports Ubuntu 16.04 & 18.04 LTS, exiting."
100100
exit 1
101101
fi
102102
else
@@ -120,6 +120,12 @@ function install_packages() {
120120
libboost-all-dev libssl-dev make autoconf libtool git apt-utils g++ \
121121
libprotobuf-dev pkg-config libcurl3-dev libudev-dev libqrencode-dev bsdmainutils \
122122
pkg-config libssl-dev libgmp3-dev libevent-dev jp2a pv virtualenv libdb4.8-dev libdb4.8++-dev &>> ${SCRIPT_LOGFILE}
123+
124+
# only for 18.04 // openssl
125+
if [[ "${VERSION_ID}" == "18.04" ]] ; then
126+
apt-get -qqy -o=Dpkg::Use-Pty=0 -o=Acquire::ForceIPv4=true install libssl1.0-dev
127+
fi
128+
123129
}
124130

125131
#

0 commit comments

Comments
 (0)