Ajaxplorer is now Pydio

This commit is contained in:
Daniel Berteaud 2013-10-18 09:03:53 +02:00
parent de8bc37223
commit c61ef18c83
8 changed files with 11 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
my $rec = $DB->get('ajaxplorer')
|| $DB->new_record('ajaxplorer', {type => 'webapp'});
my $rec = $DB->get('pydio')
|| $DB->new_record('pydio', {type => 'webapp'});
my $url = $rec->prop('LogoutUrl');

View File

@ -74,10 +74,10 @@ if (!$vhost){
$d->new_record("echange.$domain",{
type => 'domain',
Content => 'Primary',
Description => "Ajaxplorer",
Description => "Pydio",
Nameservers => 'internet',
TemplatePath => 'WebAppVirtualHost',
DocumentRoot => '/usr/share/ajaxplorer',
DocumentRoot => '/usr/share/pydio',
Removable => 'yes',
Authentication => 'LemonLDAP'
});
@ -86,7 +86,13 @@ if (!$vhost){
die "Failed to create domain echange.$domain\n";
}
}
elsif (($vhost->prop('DocumentRoot') || '/usr/share/pydio') eq '/usr/share/ajaxplorer'){
$d->set_prop("echange.$domain", 'DocumentRoot', '/usr/share/pydio');
$d->set_prop("echange.$domain", 'Description', 'Pydio');
unless ( system("/sbin/e-smith/signal-event", "domain-modify", "echange.$domain") == 0 ){
die "Failed to update domain echange.$domain\n";
}
}
$vhost = $d->get("wiki.$domain");