Change Ajaxplorer -> Pydio on the portal and create a second vhost echangeapi which also point on Pydio but with a basic auth interface (managed by LL::NG)

tags/0.2.6_el5 0.2.6_el5
Daniel Berteaud 11 years ago
parent 7e0b3d1843
commit eed9d58dfe
  1. 19
      root/etc/e-smith/events/actions/ipasserelle-webapps-init-domains
  2. 13
      root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/040pydio

@ -94,6 +94,25 @@ elsif (($vhost->prop('DocumentRoot') || '/usr/share/pydio') eq '/usr/share/ajaxp
}
}
$vhost = $d->get("echangeapi.$domain");
if (!$vhost){
$d->new_record("echangeapi.$domain",{
type => 'domain',
Content => 'Primary',
Description => "Pydio API",
Nameservers => 'internet',
TemplatePath => 'WebAppVirtualHost',
DocumentRoot => '/usr/share/pydio',
Removable => 'yes',
Authentication => 'LemonLDAPBasic'
});
unless ( system("/sbin/e-smith/signal-event", "domain-create", "echangeapi.$domain") == 0 ){
die "Failed to create domain echangeapi.$domain\n";
}
}
$vhost = $d->get("wiki.$domain");
if (!$vhost){

@ -10,17 +10,22 @@ $conf->{'locationRules'}->{"echange.$domain"} = {
'default' => 'accept'
} unless ($conf->{'locationRules'}->{"echange.$domain"});
$conf->{'vhostOptions'}->{"echange.$domain"} = {
'vhostAliases' => "echangeapi.$domain"
} unless ($conf->{'vhostOptions'}->{"echange.$domain"});
$conf->{'applicationList'}->{'010apps'}->{'ajaxplorer'} = {
$conf->{'applicationList'}->{'010apps'}->{'pydio'} = {
'options' => {
'logo' => 'ajaxplorer.png',
'logo' => 'pydio.png',
'name' => 'Gestion des fichiers',
'description' => 'Gestionnaire de fichiers web Ajaxplorer',
'description' => 'Gestionnaire de fichiers web Pydio',
'uri' => "https://echange.$domain/",
'display' => 'auto'
},
'type' => 'application'
} unless ($conf->{'applicationList'}->{'010apps'}->{'ajaxplorer'});
} unless ($conf->{'applicationList'}->{'010apps'}->{'pydio'});
delete $conf->{'applicationList'}->{'010apps'}->{'ajaxplorer'};
$OUT = '';

Loading…
Cancel
Save