forked from norman/fusionpbx-install.sh-github-mirror
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:
@@ -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
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# Mark J Crane <markjcrane@fusionpbx.com>
|
# Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
# Copyright (C) 2018
|
# Copyright (C) 2018
|
||||||
# All Rights Reserved.
|
# All Rights Reserved.
|
||||||
|
|
||||||
#move to script directory so all relative paths work
|
#move to script directory so all relative paths work
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
@@ -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
|
||||||
@@ -124,4 +124,4 @@ if [ .$switch_tls = ."true" ]; then
|
|||||||
#set the permissions
|
#set the permissions
|
||||||
chown -R www-data:www-data /etc/freeswitch/tls
|
chown -R www-data:www-data /etc/freeswitch/tls
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user