Update ubuntu install config for 18.04 (#309)

* Update ubuntu install config for 18.04

* Sync with debian letsencrypt.sh changes

* Update git repo for dehydrated
This commit is contained in:
racitup
2020-03-26 05:28:28 +00:00
committed by GitHub
parent a7a6184871
commit 7f593391e5
3 changed files with 7 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ system_branch=master # master, stable
switch_branch=stable # master, stable switch_branch=stable # master, stable
switch_source=true # true or false switch_source=true # true or false
switch_package=false # true or false switch_package=false # true or false
switch_version=1.10.1 # only for source switch_version=1.10.2 # only for source
switch_tls=true # true or false switch_tls=true # true or false
# Database Settings # Database Settings

View File

@@ -23,7 +23,7 @@ read -p 'Domain Name: ' domain_name
read -p 'Email Address: ' email_address read -p 'Email Address: ' email_address
#get and install dehydrated #get and install dehydrated
cd /usr/src && git clone https://github.com/lukas2511/dehydrated.git cd /usr/src && git clone https://github.com/dehydrated-io/dehydrated.git
cd /usr/src/dehydrated cd /usr/src/dehydrated
cp dehydrated /usr/local/sbin cp dehydrated /usr/local/sbin
mkdir -p /var/www/dehydrated mkdir -p /var/www/dehydrated
@@ -58,8 +58,8 @@ cp docs/examples/config /etc/dehydrated
#update the dehydrated config #update the dehydrated config
#sed "s#CONTACT_EMAIL=#CONTACT_EMAIL=$email_address" -i /etc/dehydrated/config #sed "s#CONTACT_EMAIL=#CONTACT_EMAIL=$email_address" -i /etc/dehydrated/config
sed -i' ' -e s:'#CONTACT_EMAIL=":CONTACT_EMAIL=$email_address:' /etc/dehydrated/config sed -i 's/#CONTACT_EMAIL=/CONTACT_EMAIL="'"$email_address"'"/g' /etc/dehydrated/config
sed -i' ' -e s:'#WELLKNOWN="/var/www/dehydrated":WELLKNOWN="/var/www/dehydrated":' /etc/dehydrated/config sed -i 's/#WELLKNOWN=/WELLKNOWN=/g' /etc/dehydrated/config
#accept the terms #accept the terms
dehydrated --register --accept-terms --config /etc/dehydrated/config dehydrated --register --accept-terms --config /etc/dehydrated/config

View File

@@ -15,6 +15,7 @@ apt install -y pkg-config flac libgdbm-dev libdb-dev gettext sudo equivs mlocat
apt install -y liblua5.2-dev libtiff5-dev libperl-dev libcurl4-openssl-dev libsqlite3-dev libpcre3-dev apt install -y liblua5.2-dev libtiff5-dev libperl-dev libcurl4-openssl-dev libsqlite3-dev libpcre3-dev
apt install -y devscripts libspeexdsp-dev libspeex-dev libldns-dev libedit-dev libopus-dev libmemcached-dev apt install -y devscripts libspeexdsp-dev libspeex-dev libldns-dev libedit-dev libopus-dev libmemcached-dev
apt install -y libshout3-dev libmpg123-dev libmp3lame-dev yasm nasm libsndfile1-dev libuv1-dev libvpx-dev libvpx5 apt install -y libshout3-dev libmpg123-dev libmp3lame-dev yasm nasm libsndfile1-dev libuv1-dev libvpx-dev libvpx5
apt install -y libavformat-dev libswscale-dev
# additional dependencies # additional dependencies
apt install -y swig3.0 unzip sox wget apt install -y swig3.0 unzip sox wget