-
Notifications
You must be signed in to change notification settings - Fork 0
/
3CXInstall.sh
28 lines (22 loc) · 1.26 KB
/
3CXInstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
clear
echo "
██╗███╗ ██╗████████╗███████╗██╗ ██╗ █████╗
██║████╗ ██║╚══██╔══╝██╔════╝██║ ██║██╔══██╗
██║██╔██╗ ██║ ██║ █████╗ ██║ ██║███████║
██║██║╚██╗██║ ██║ ██╔══╝ ██║ ██║██╔══██║
██║██║ ╚████║ ██║ ███████╗███████╗██║██║ ██║
╚═╝╚═╝ ╚═══╝ ╚═╝ ╚══════╝╚══════╝╚═╝╚═╝ ╚═╝
"
echo "#######################"
echo "Installation 3CX"
echo "#######################"
apt install gnupg2 -y
wget -O- http://downloads-global.3cx.com/downloads/3cxpbx/public.key | sudo apt-key add
echo "deb http://downloads-global.3cx.com/downloads/debian buster main" | sudo tee /etc/apt/sources.list.d/3cxpbx.list
apt update
apt install -y net-tools dphys-swapfile
apt install -y 3cxpbx
echo 'sshd: X.X.X.X' >> /etc/hosts.allow
echo 'sshd: ALL' >> /etc/hosts.deny
/etc/init.d/ssh restart