[-]
[+]
|
Changed |
config.sh
|
@@ -94,6 +94,13 @@
mv /studio/overlay-tmp/files/root/fix_perm.sh /root/fix_perm.sh
chown root:root /root/fix_perm.sh
chmod 700 /root/fix_perm.sh
+mkdir -p /root/
+mv /studio/overlay-tmp/files/root/add_epbx_repos.sh /root/add_epbx_repos.sh
+chown root:root /root/add_epbx_repos.sh
+chmod 700 /root/add_epbx_repos.sh
+mkdir -p /root/
+mv /studio/overlay-tmp/files/root/freepbx_baseinstall.sh /root/freepbx_baseinstall.sh
+chmod 700 /root/freepbx_baseinstall.sh
chown root:root /build-custom
chmod +x /build-custom
# run custom build_script after build
|
[-]
[+]
|
Added |
root.tar.bz2/studio/overlay-tmp/files/root/add_epbx_repos.sh
^
|
@@ -0,0 +1,23 @@
+#!/bin/bash
+# add enterprise pbx repos
+
+REPOHOST="http://download.obs.j0ke.net"
+DEFAULTKEY="j0ke-buildservice.asc"
+REPODIRS="
+multimedia:/SL11/SLE_11_SP1/#multimedia:SL11
+ha/SLE_11_SP1/#ha
+server:/telephony/SLE_11_SP1/#server:telephony
+server:/backup/SLE_11_SP1/#server:backup
+server:/monitoring/SLE_11_SP1/#server:monitoring
+server:/messaging/SLE_11_SP1/#server:messaging
+Apache/SLE_11_SP1/#Apache
+Apache:/Modules/Apache_SLE_11/#Apache:Modules
+"
+
+wget -q ${REPOHOST}/${DEFAULTKEY} -O /root/j0ke-buildservice.asc && rpm --import /root/j0ke-buildservice.asc
+
+for REPO in ${REPODIRS} ; do
+ RDIR=`echo ${REPO}|awk -F# '{print $1}'`
+ RNAM=`echo ${REPO}|awk -F# '[print $2}'`
+ echo "zypper --gpg-auto-import-keys ar -f ${REPOHOST}/${RDIR} ${RNAM}"
+done
|
[-]
[+]
|
Added |
root.tar.bz2/studio/overlay-tmp/files/root/freepbx_baseinstall.sh
^
|
@@ -0,0 +1,11 @@
+#!/bin/bash
+# setup freepbx
+MYPW="passw0rd"
+cd /usr/src/freepbx
+mysql -p${MYPW} asterisk < SQL/newinstall.sql
+mysql -p${MYPW} asteriskcdrdb < SQL/cdr_mysql_table.sql
+mysql -p${MYPW} -ss -e "GRANT ALL PRIVILEGES ON asteriskcdrdb.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';"
+mysql -p${MYPW} -ss -e "GRANT ALL PRIVILEGES ON asterisk.* TO asteriskuser@localhost IDENTIFIED BY 'amp109';"
+./start_asterisk start
+./install_amp --username root --password ${MYPW}
+find /srv/www/htdocs -type d -exec chmod a+rx {} \;
|