From 54f78463fd35ac0a6434f36a6d240a9c7593cffe Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 30 Mar 2007 08:39:51 +0000 Subject: [PATCH] Updated mysql creator for gofon db's Updated start-gosa.sh git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5937 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/mysql/gofon/gofon.sql | 6 +- contrib/scripts/start-gosa.sh | 192 +++++++++++++++------------------- 2 files changed, 90 insertions(+), 108 deletions(-) diff --git a/contrib/mysql/gofon/gofon.sql b/contrib/mysql/gofon/gofon.sql index be8b84220..584bcc99f 100644 --- a/contrib/mysql/gofon/gofon.sql +++ b/contrib/mysql/gofon/gofon.sql @@ -1,5 +1,5 @@ -create database asteriskcdrdb; -use asteriskcdrdb; +create database gophone; +use gophone; create table cdr ( calldate datetime NOT NULL default '0000-00-00 00:00:00', @@ -20,5 +20,5 @@ create table cdr ( userfield varchar(255) NOT NULL default '' ); -GRANT INSERT,SELECT ON asteriskcdrdb.cdr TO asterisk@localhost IDENTIFIED BY 'somemysqlpass'; +GRANT INSERT,SELECT ON gophone.cdr TO asterisk@localhost IDENTIFIED BY 'somemysqlpass'; diff --git a/contrib/scripts/start-gosa.sh b/contrib/scripts/start-gosa.sh index 622a6cbda..d6cd93a9c 100755 --- a/contrib/scripts/start-gosa.sh +++ b/contrib/scripts/start-gosa.sh @@ -1,10 +1,16 @@ #!/bin/sh # Start script for GOsa to be started via mozilla +url="" +if [ $# -ne 1 ]; then + echo "Usage: $(basename $0) " + exit 1 +fi + # Check for presence of gosa profile -if [ ! -d $HOME/.mozilla/gosa ]; then - mozilla -CreateProfile gosa - config=`echo $HOME/.mozilla/gosa/*/` +if [ ! -d $HOME/.mozilla/firefox/*.gosa ]; then + firefox -CreateProfile gosa + config=`echo $HOME/.mozilla/firefox/*.gosa/` cat << EOF > $config/prefs.js # Mozilla User Preferences @@ -18,18 +24,27 @@ if [ ! -d $HOME/.mozilla/gosa ]; then * For more information, see http://www.mozilla.org/unix/customizing.html#prefs */ -user_pref("browser.search.defaultengine", "engine:///usr/lib/mozilla/searchplugins/google.src"); -user_pref("browser.startup.homepage", "http://vserver-02/gosa/index.php"); -user_pref("browser.startup.homepage_override.mstone", "rv:1.6"); -user_pref("browser.toolbars.showbutton.bookmarks", false); -user_pref("browser.toolbars.showbutton.home", false); -user_pref("browser.toolbars.showbutton.print", false); -user_pref("browser.toolbars.showbutton.search", false); -user_pref("intl.accept_languages", "de"); +user_pref("app.update.autoUpdateEnabled", false); +user_pref("app.update.enabled", false); +user_pref("browser.download.folderList", 2); +user_pref("browser.download.manager.showWhenStarting", false); +user_pref("browser.formfill.enable", false); +user_pref("browser.preferences.lastpanel", 1); +user_pref("browser.search.selectedEngine", "Damnfresh"); +user_pref("browser.startup.homepage", "$url"); +user_pref("browser.startup.homepage_override.mstone", "rv:1.8.1.1"); +user_pref("extensions.disabledObsolete", true); +user_pref("extensions.lastAppVersion", "2.0.0.1"); +user_pref("extensions.update.autoUpdateEnabled", false); user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1"); -user_pref("plugin.soname.list", "libXt.so:libXext.so"); -user_pref("signon.SignonFileName", "84795799.s"); -user_pref("wallet.SchemaValueFileName", "84795819.w"); +user_pref("network.cookie.prefsMigrated", true); +user_pref("security.OCSP.URL", ""); +user_pref("security.OCSP.signingCA", "Builtin Object Token:IPS CLASE1 root"); +user_pref("security.warn_entering_secure", false); +user_pref("security.warn_leaving_secure", false); +user_pref("security.warn_submit_insecure", false); +user_pref("security.warn_viewing_mixed", false); +user_pref("signon.rememberSignons", false); user_pref("security.warn_submit_insecure", false); EOF @@ -39,108 +54,75 @@ http://vserver-02 . EOF - cat << EOF > $config/localstore.rdf + [ ! -d $config/chrome ] && mkdir -p $config/chrome + cat << EOF > $config/chrome/userChrome.css +#main-menubar { + display: none; +} +#navigator-throbber { + display: none; +} +EOF + +cat << EOF > $config/localstore.rdf - + + + EOF fi # Start mozilla with GOsa profile -mozilla -P gosa +firefox -P gosa -- 2.30.2