/[smecontribs]/rpms/smeserver-freepbx/contribs8/smeserver-freepbx-0.1-recordings_security.patch
ViewVC logotype

Contents of /rpms/smeserver-freepbx/contribs8/smeserver-freepbx-0.1-recordings_security.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Feb 26 03:16:30 2013 UTC (11 years, 2 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-0_1-32_el5_sme, smeserver-freepbx-0_1-33_el5_sme, HEAD
Initial import

1 --- smeserver-freepbx-0.1/createlinks.recordings_security 2009-03-23 10:38:06.000000000 +0100
2 +++ smeserver-freepbx-0.1/createlinks 2009-03-23 10:40:00.000000000 +0100
3 @@ -37,6 +37,7 @@
4
5 event_link("freepbx-checkinstall", $event, "10");
6 event_link("freepbx-applypatch", $event, "20");
7 +event_link("freepbx-security", $event, "30");
8 event_link("freepbx-dump-astdb", "pre-backup", "30");
9
10 safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init");
11 --- smeserver-freepbx-0.1/root/etc/e-smith/events/actions/freepbx-security.recordings_security 2009-03-23 10:38:30.000000000 +0100
12 +++ smeserver-freepbx-0.1/root/etc/e-smith/events/actions/freepbx-security 2009-03-23 10:39:12.000000000 +0100
13 @@ -0,0 +1,11 @@
14 +#!/bin/bash
15 +
16 +# Put a random password for ari admin. This function should be more documented
17 +
18 +PASS=`/usr/bin/openssl rand -base64 40 | /usr/bin/tr -c -d '[:graph:]'`
19 +
20 +if [ -e /opt/freepbx/recordings/includes/main.conf.php ]; then
21 + sed -i -e "s/\$ARI_ADMIN_PASSWORD =\"ari_password\";/\$ARI_ADMIN_PASSWORD = \"$PASS\";/" \
22 + /opt/freepbx/recordings/includes/main.conf.php
23 +fi
24 +

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed