1 |
unnilennium |
1.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 |
|
|
+ |