Code

Updated setup.
[gosa.git] / setup / setup_step8.tpl
1 <div style='float:left;width:690px;'>
3 <h2>{t}Configuration File{/t}</h2>
4         <p>
5                 {t}GOsa setup has collected all data needed to create an initial configuration file.{/t}
6         </p>
7         <p>
8                 {t}If you want the setup routine to write the configuration file, use the 'Save configuration' button below. If you prefer to copy the 'gosa.conf' manually to '/etc/gosa/' you can download the configuration file by using the 'Download configuration' button.{/t}
9         </p>
10         <p>
11                 <b>{t}Automatically write configuration{/t}</b>
12         </p>
13         <p>     
14                 {if $writeable}
15                         {t}Write configuration file{/t}&nbsp;
16                         <input type='submit' name='saveconf' value='{t}Save configuration{/t}'>
18                         {if $exists}
19                         <br>
20                         <input type='hidden' name='create_backup_visible' value='1'>
21                         <input {if $create_backup} checked {/if} type='checkbox' value='1' name='create_backup'>&nbsp;
22                         {t}Create a backup from existing configuration file{/t}
23                         {/if}
25                         {if $err_msg != ""}
26                                 <div style='color:red ; font-weight:bold '>{$err_msg}</div>
27                         {else}
28                                 {if $save_requested}            
29                                         <div style='color:green ; font-weight:bold '>{t}Configuration succesfully written.{/t}</div>
30                                 {/if}
31                         {/if}
33                         {if $last_backup_name}
34                                 <br>
35                                 <div style='padding-left:20px;'>{t}Last created backup{/t}: &nbsp;<i>{$last_backup_name}</i></div> 
36                         {/if}
39                         
40                         {if $exists}
41                                 <br>
42                                 <br>
43                                 <b>{t}Use GOsa with current configuration file{/t}</b>
44                                 <br>
45                                 <input type='submit' name='use_gosa' value='{t}Use GOsa now{/t}'> 
46                         {/if}
47                 {else}          
48                         <div style='font-weight: bold; color: red;'>{t}Can't write configuration file, please check permissions.{/t}</div>
49                         <pre>
50 {$msg_permissions}
51         {$CONFIG_DIR} 
52         {$CONFIG_DIR}{$gosa_conf_name}
53                         </pre>
54                 {/if}
55         </p>
56         <br>
57         <p>
58                 <b>{t}Manually create configuration file{/t}</b>
59         </p>
60         <p>     
61                 {t}Download the configuration file{/t}&nbsp;
62                 <input type='submit' name='getconf' value='{t}Download configuration{/t}'>
63         </p>
64         <p>     
65                 {t}After placing the file under /etc/gosa, place make sure that the webserver user is able to read gosa.conf, while other users shouldn't. You may want to execute these commands to achieve this requirement:{/t}
66         </p>
67         <pre>
68         # chown root.{$webgroup} /etc/gosa/gosa.conf
69         # chmod 640 /etc/gosa/gosa.conf
70         </pre>
71 </p>
75 </div>
76 <input type='hidden' value='1' name='step8_posted'>