Use /usr/local/etc on FreeBSD
This commit is contained in:
parent
9143158480
commit
0d5191331e
|
|
@ -29,12 +29,18 @@ if [ .$nginx_enabled = .'true' ]; then
|
||||||
sudo -u postgres psql -c "ALTER USER freeswitch WITH PASSWORD '$database_password';"
|
sudo -u postgres psql -c "ALTER USER freeswitch WITH PASSWORD '$database_password';"
|
||||||
|
|
||||||
#add the config.php
|
#add the config.php
|
||||||
mkdir -p /etc/fusionpbx
|
mkdir -p /usr/local/etc/fusionpbx
|
||||||
chown -R www:www /etc/fusionpbx
|
chown -R www:www /usr/local/etc/fusionpbx
|
||||||
cp fusionpbx/config.php /etc/fusionpbx
|
cp fusionpbx/config.php /usr/local/etc/fusionpbx
|
||||||
sed -i' ' -e s:"{database_host}:$database_host:" /etc/fusionpbx/config.php
|
sed -i' ' -e s:"{database_host}:$database_host:" /usr/local/etc/fusionpbx/config.php
|
||||||
sed -i' ' -e s:'{database_username}:fusionpbx:' /etc/fusionpbx/config.php
|
sed -i' ' -e s:'{database_username}:fusionpbx:' /usr/local/etc/fusionpbx/config.php
|
||||||
sed -i' ' -e s:"{database_password}:$database_password:" /etc/fusionpbx/config.php
|
sed -i' ' -e s:"{database_password}:$database_password:" /usr/local/etc/fusionpbx/config.php
|
||||||
|
|
||||||
|
#add the config.conf
|
||||||
|
cp fusionpbx/config.conf /usr/local/etc/fusionpbx
|
||||||
|
sed -i' ' -e s:"{database_host}:$database_host:" /usr/local/etc/fusionpbx/config.conf
|
||||||
|
sed -i' ' -e s:'{database_username}:fusionpbx:' /usr/local/etc/fusionpbx/config.conf
|
||||||
|
sed -i' ' -e s:"{database_password}:$database_password:" /usr/local/etc/fusionpbx/config.conf
|
||||||
|
|
||||||
#add the database schema
|
#add the database schema
|
||||||
cd /usr/local/www/fusionpbx && /usr/local/bin/php /usr/local/www/fusionpbx/core/upgrade/upgrade_schema.php > /dev/null 2>&1
|
cd /usr/local/www/fusionpbx && /usr/local/bin/php /usr/local/www/fusionpbx/core/upgrade/upgrade_schema.php > /dev/null 2>&1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue