1 #!/bin/sh
2 # Start script for GOsa to be started via mozilla
4 url=""
5 if [ $# -ne 1 ]; then
6 echo "Usage: $(basename $0) <URL>"
7 exit 1
8 fi
10 # Check for presence of gosa profile
11 if [ ! -d $HOME/.mozilla/firefox/*.gosa ]; then
12 firefox -CreateProfile gosa
13 config=`echo $HOME/.mozilla/firefox/*.gosa/`
15 cat << EOF > $config/prefs.js
16 # Mozilla User Preferences
18 /* Do not edit this file.
19 *
20 * If you make changes to this file while the browser is running,
21 * the changes will be overwritten when the browser exits.
22 *
23 * To make a manual change to preferences, you can visit the URL about:config
24 * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
25 */
27 user_pref("app.update.autoUpdateEnabled", false);
28 user_pref("app.update.enabled", false);
29 user_pref("browser.download.folderList", 2);
30 user_pref("browser.download.manager.showWhenStarting", false);
31 user_pref("browser.formfill.enable", false);
32 user_pref("browser.preferences.lastpanel", 1);
33 user_pref("browser.search.selectedEngine", "Damnfresh");
34 user_pref("browser.startup.homepage", "$url");
35 user_pref("browser.startup.homepage_override.mstone", "rv:1.8.1.1");
36 user_pref("extensions.disabledObsolete", true);
37 user_pref("extensions.lastAppVersion", "2.0.0.1");
38 user_pref("extensions.update.autoUpdateEnabled", false);
39 user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1");
40 user_pref("network.cookie.prefsMigrated", true);
41 user_pref("security.OCSP.URL", "");
42 user_pref("security.OCSP.signingCA", "Builtin Object Token:IPS CLASE1 root");
43 user_pref("security.warn_entering_secure", false);
44 user_pref("security.warn_leaving_secure", false);
45 user_pref("security.warn_submit_insecure", false);
46 user_pref("security.warn_viewing_mixed", false);
47 user_pref("signon.rememberSignons", false);
48 user_pref("security.warn_submit_insecure", false);
49 EOF
51 cat << EOF > $config/84795799.s
52 #2c
53 http://vserver-02
54 .
55 EOF
57 [ ! -d $config/chrome ] && mkdir -p $config/chrome
58 cat << EOF > $config/chrome/userChrome.css
59 #main-menubar {
60 display: none;
61 }
62 #navigator-throbber {
63 display: none;
64 }
65 EOF
67 cat << EOF > $config/localstore.rdf
68 <?xml version="1.0"?>
69 <RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
70 xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
71 <RDF:Description RDF:about="chrome://mozapps/content/downloads/unknownContentType.xul#unknownContentType"
72 screenX="267"
73 screenY="304" />
74 <RDF:Description RDF:about="chrome://browser/content/browser.xul#PersonalToolbar"
75 currentset="__empty"
76 collapsed="true" />
77 <RDF:Description RDF:about="chrome://browser/content/browser.xul#toolbar-menubar"
78 currentset="__empty"
79 collapsed="true" />
80 <RDF:Description RDF:about="chrome://browser/content/browser.xul#sidebar-box"
81 collapsed="true"
82 sidebarcommand=""
83 width=""
84 src="" />
85 <RDF:Description RDF:about="chrome://browser/content/browser.xul#status-bar"
86 hidden="true" />
87 <RDF:Description RDF:about="chrome://browser/content/browser.xul">
88 <NC:persist RDF:resource="chrome://browser/content/browser.xul#main-window"/>
89 <NC:persist RDF:resource="chrome://browser/content/browser.xul#sidebar-box"/>
90 <NC:persist RDF:resource="chrome://browser/content/browser.xul#sidebar-title"/>
91 <NC:persist RDF:resource="chrome://browser/content/browser.xul#nav-bar"/>
92 <NC:persist RDF:resource="chrome://browser/content/browser.xul#PersonalToolbar"/>
93 <NC:persist RDF:resource="chrome://browser/content/browser.xul#toolbar-menubar"/>
94 </RDF:Description>
95 <RDF:Description RDF:about="chrome://mozapps/content/downloads/unknownContentType.xul">
96 <NC:persist RDF:resource="chrome://mozapps/content/downloads/unknownContentType.xul#unknownContentType"/>
97 </RDF:Description>
98 <RDF:Description RDF:about="chrome://global/content/customizeToolbar.xul">
99 <NC:persist RDF:resource="chrome://global/content/customizeToolbar.xul#CustomizeToolbarWindow"/>
100 </RDF:Description>
101 <RDF:Description RDF:about="chrome://help/content/help.xul#help"
102 screenX="350"
103 screenY="225"
104 width="700"
105 height="550" />
106 <RDF:Description RDF:about="chrome://browser/content/browser.xul#main-window"
107 screenX="50"
108 screenY="25"
109 sizemode="normal"
110 width="994"
111 height="962" />
112 <RDF:Description RDF:about="chrome://help/content/help.xul">
113 <NC:persist RDF:resource="chrome://help/content/help.xul#help"/>
114 </RDF:Description>
115 <RDF:Description RDF:about="chrome://browser/content/browser.xul#nav-bar"
116 currentset="__empty"
117 collapsed="true" />
118 </RDF:RDF>
122 EOF
123 fi
126 # Start mozilla with GOsa profile
127 firefox -P gosa