Activation de mozilla MCD depuis la DB

sessionscripts
Daniel Berteaud 13 years ago
parent a752fb6284
commit 1889b48e35
  1. 1
      root/etc/e-smith/db/configuration/defaults/mozilla-mcd/access
  2. 1
      root/etc/e-smith/db/configuration/defaults/mozilla-mcd/status
  3. 1
      root/etc/e-smith/db/configuration/defaults/mozilla-mcd/type
  4. 16
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/99MozMcdThunderbird

@ -1,3 +1,11 @@
{
if ((${'mozilla-mcd{'status'} || 'disabled')eq 'enabled'){
my $access = ${'mozilla-mcd'}{'access'} || 'private';
$access = ($access eq 'public') ? "all":"$localAccess $externalSSLAccess";
$OUT .=<<"EOF";
Alias /thunderbird.cfg /usr/share/mozilla-mcd/thunderbird.php Alias /thunderbird.cfg /usr/share/mozilla-mcd/thunderbird.php
<Directory /usr/share/mozilla-mcd/> <Directory /usr/share/mozilla-mcd/>
@ -5,9 +13,15 @@ Alias /thunderbird.cfg /usr/share/mozilla-mcd/thunderbird.php
php_admin_value open_basedir /usr/share/mozilla-mcd php_admin_value open_basedir /usr/share/mozilla-mcd
Order deny,allow Order deny,allow
Deny from all Deny from all
Allow from {"$localAccess $externalSSLAccess";} Allow from $access
<FilesMatch "\.conf\.php$"> <FilesMatch "\.conf\.php$">
order deny,allow order deny,allow
Deny from all Deny from all
</FilesMatch> </FilesMatch>
</Directory> </Directory>
EOF
}
else{
$OUT .= "# Mozilla MCD is disabled\n";
}

Loading…
Cancel
Save