403Webshell
Server IP : 189.126.111.107  /  Your IP : 216.73.217.69
Web Server : Apache
System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64
User : gadotticar ( 1000)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/src/fusionpbx-install.sh/freebsd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/src/fusionpbx-install.sh/freebsd/install.sh
#!/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"
pkg upgrade --yes

#Update the ports
if [ .$portsnap_enabled = .'true' ]; then
	if [ -f /usr/ports/UPDATING ]; then
		portsnap fetch update
		echo "/usr/ports updated"
	else
 		pkg install --yes portsnap
		mkdir -p /var/db/portsnap
		chmod 755 /var/db/portsnap
		chown root:wheel /var/db/portsnap
		portsnap fetch extract
		echo "/usr/ports added"
	fi
fi

#PF - Packet Filter
if [ .$firewall_enabled = .'true' ]; then
	resources/pf.sh
fi

#sngrep
if [ .$sngrep_enabled = .'true' ]; then
	resources/sngrep.sh
fi

#FusionPBX
if [ .$nginx_enabled = .'true' ]; then
	resources/fusionpbx.sh
fi

#Postgres
if [ .$database_enabled = .'true' ]; then
	resources/postgresql.sh
fi

#NGINX web server
if [ .$nginx_enabled = .'true' ]; then
	resources/nginx.sh
fi

#FreeSWITCH
if [ .$switch_enabled = .'true' ]; then
	resources/switch.sh
fi

#restart services
if [ .$nginx_enabled = .'true' ]; then
	service php-fpm restart
	service nginx restart
fi
if [ .$fail2ban_enabled = .'true' ]; then
	service fail2ban restart
fi

#Fail2ban
if [ .$fail2ban_enabled = .'true' ]; then
	resources/fail2ban.sh
fi

#add the database schema, user and groups
resources/finish.sh

Youez - 2016 - github.com/yon3zu
LinuXploit