Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update homer_installer.sh #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions homer_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ detect_linux_distribution() {

case "$distro_name" in
Debian ) case "$distro_version" in
9* | 10* | 11* ) SETUP_ENTRYPOINT="setup_debian"
9* | 10* | 11* | 12* ) SETUP_ENTRYPOINT="setup_debian"
return 0 ;; # Suported Distribution
* ) return 1 ;; # Unsupported Distribution
esac
Expand Down Expand Up @@ -320,12 +320,12 @@ install_homer(){
echo "Installing Homer-App"
if [ -f /etc/debian_version ]; then
local cmd_apt_get=$(locate_cmd "apt-get")
$cmd_curl -s https://packagecloud.io/install/repositories/qxip/sipcapture/script.deb.sh | sudo bash
$cmd_apt_get install homer-app heplify-server -y
$cmd_curl -s https://packagecloud.io/install/repositories/qxip/sipcapture/script.deb.sh?any=true | sudo bash
$cmd_apt_get install heplify homer-app heplify-server -y
else
local cmd_yum=$(locate_cmd "yum")
$cmd_curl -s https://packagecloud.io/install/repositories/qxip/sipcapture/script.rpm.sh | sudo bash
$cmd_yum install homer-app heplify-server -y
$cmd_curl -s https://packagecloud.io/install/repositories/qxip/sipcapture/script.rpm.sh?any=true | sudo bash
$cmd_yum install heplify homer-app heplify-server -y
fi

$cmd_sed -i -e "s/homer_user/$DB_USER/g" /usr/local/homer/etc/webapp_config.json
Expand Down Expand Up @@ -487,6 +487,7 @@ setup_debian() {
source /etc/os-release
test $VERSION_ID = "9" && echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/postgresql.list
test $VERSION_ID = "10" && echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" > /etc/apt/sources.list.d/postgresql.list
test $VERSION_ID = "12" && echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/postgresql.list

$cmd_apt_get update

Expand Down