forked from norman/fusionpbx-install.sh-github-mirror
Fixes to allow deployment on FreeBSD 14 (#415)
* Changing default domain name to hostname, setting default PostgreSQL version to 15 * Adding support for PostgreSQL 14 and 15 * Correcting user and group options for freeswitch runtime * Copying missing resources/fail2ban/freeswitch-dos.conf from debian dir, adding missing copy of sip-auth-challenge-ip.conf and sip-auth-challenge.conf, setting default setting for allowipv6 directive * Remove freeswitch database and user Reason for this change is if FreeSWITCH uses the PostgreSQL then its a good idea for it to use its own instance. This is to prevent blocking FreeSWITCH from accessing the database if there is a long running Query on the FusionPBX database * Changing default domain name to hostname, setting default PostgreSQL version to 15 * Adding support for PostgreSQL 14 and 15 * Correcting user and group options for freeswitch runtime * Copying missing resources/fail2ban/freeswitch-dos.conf from debian dir, adding missing copy of sip-auth-challenge-ip.conf and sip-auth-challenge.conf, setting default setting for allowipv6 directive --------- Co-authored-by: Charlie Root <root@sjcacs-test.gadallah.net>
This commit is contained in:
@@ -24,6 +24,14 @@ password=$(cat /dev/random | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c 20)
|
||||
echo "Install PostgreSQL and create the database and users\n"
|
||||
|
||||
#postgres install
|
||||
if [ ."$database_version" = ."15" ]; then
|
||||
pkg install --yes postgresql15-server
|
||||
#cd /usr/ports/databases/postgresql15-server/ && make install clean BATCH=yes
|
||||
fi
|
||||
if [ ."$database_version" = ."14" ]; then
|
||||
pkg install --yes postgresql14-server
|
||||
#cd /usr/ports/databases/postgresql14-server/ && make install clean BATCH=yes
|
||||
fi
|
||||
if [ ."$database_version" = ."13" ]; then
|
||||
pkg install --yes postgresql13-server
|
||||
#cd /usr/ports/databases/postgresql13-server/ && make install clean BATCH=yes
|
||||
@@ -64,6 +72,12 @@ echo 'postgresql_enable=true' >> /etc/rc.conf
|
||||
/usr/local/etc/rc.d/postgresql initdb
|
||||
|
||||
#start postgresql
|
||||
if [ ."$database_version" = ."15" ]; then
|
||||
sudo -u postgres /usr/local/bin/pg_ctl -D /var/db/postgres/data15 start
|
||||
fi
|
||||
if [ ."$database_version" = ."14" ]; then
|
||||
sudo -u postgres /usr/local/bin/pg_ctl -D /var/db/postgres/data14 start
|
||||
fi
|
||||
if [ ."$database_version" = ."13" ]; then
|
||||
sudo -u postgres /usr/local/bin/pg_ctl -D /var/db/postgres/data13 start
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user