forked from norman/fusionpbx-install.sh-github-mirror
installation script for OS Devuan (#95)
* adding devuan * add devaun desc to README make update and upgrade more noisy correct path for devuan in pre-install * some untested code for the source install - source installation is broken in Debian installation script and I have not debugged the problem. Focusing on the packaged version first.
This commit is contained in:
56
devuan/install.sh
Executable file
56
devuan/install.sh
Executable file
@@ -0,0 +1,56 @@
|
||||
#!/bin/sh
|
||||
|
||||
#move to script directory so all relative paths work
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
#includes
|
||||
. ./resources/config.sh
|
||||
. ./resources/colors.sh
|
||||
. ./resources/environment.sh
|
||||
|
||||
#Update to latest packages
|
||||
verbose "Update installed packages"
|
||||
#apt-get upgrade && apt-get update -y --force-yes
|
||||
# --force-yes is dangerous as per the man page. Lets use -y
|
||||
apt-get -q update && apt-get -q --assume-yes upgrade
|
||||
|
||||
#Add dependencies
|
||||
apt-get install -q -y lsb-release sudo
|
||||
|
||||
#IPTables
|
||||
resources/iptables.sh
|
||||
|
||||
#FusionPBX
|
||||
resources/fusionpbx.sh
|
||||
|
||||
#NGINX web server
|
||||
resources/nginx.sh
|
||||
|
||||
#PHP
|
||||
resources/php.sh
|
||||
|
||||
#FreeSWITCH
|
||||
resources/switch.sh
|
||||
|
||||
#Fail2ban
|
||||
resources/fail2ban.sh
|
||||
|
||||
#Optional CLI SIP monitoring tool
|
||||
resources/sngrep.sh
|
||||
|
||||
#Postgres
|
||||
resources/postgres.sh
|
||||
|
||||
#restart services
|
||||
if [ ."$php_version" = ."5" ]; then
|
||||
service php5-fpm restart
|
||||
fi
|
||||
if [ ."$php_version" = ."7" ]; then
|
||||
service php7.0-fpm restart
|
||||
fi
|
||||
|
||||
service nginx restart
|
||||
service fail2ban restart
|
||||
|
||||
#add the database schema, user and groups
|
||||
resources/finish.sh
|
||||
Reference in New Issue
Block a user