domain-options on domain.add do not work
This commit is contained in:
parent
f8fd8709d5
commit
dcd2eadd05
@ -83,31 +83,23 @@ if (pacs.length == 1 && hive != 'undef') {
|
|||||||
// Domain
|
// Domain
|
||||||
var domains = domain.search();
|
var domains = domain.search();
|
||||||
for (idx=0; idx<domains.length; idx++) {
|
for (idx=0; idx<domains.length; idx++) {
|
||||||
if (domains[idx]['name'] == pacname + '.hostsharing.net') {
|
if ( ! (domains[idx]['name'] == pacname + '.hostsharing.net')) {
|
||||||
file.write('domain.update({where:{\n');
|
|
||||||
file.write('name: "' + domains[idx]['name'] + '"\n');
|
|
||||||
file.write('},set:{\n');
|
|
||||||
file.write('domainoptions: [\n');
|
|
||||||
if (domains[idx]['domainoptions']) {
|
|
||||||
for (jdx=0; jdx<domains[idx]['domainoptions'].length; jdx++) {
|
|
||||||
file.write(' "' + domains[idx]['domainoptions'][jdx] + '",\n');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file.write(' ]\n');
|
|
||||||
file.write('}});\n');
|
|
||||||
} else {
|
|
||||||
file.write('domain.add({set:{\n');
|
file.write('domain.add({set:{\n');
|
||||||
file.write('name: "' + domains[idx]['name'] + '",\n');
|
file.write('name: "' + domains[idx]['name'] + '",\n');
|
||||||
file.write('user: "' + domains[idx]['user'] + '",\n');
|
file.write('user: "' + domains[idx]['user'] + '"\n');
|
||||||
file.write('domainoptions: [\n');
|
|
||||||
if (domains[idx]['domainoptions']) {
|
|
||||||
for (jdx=0; jdx<domains[idx]['domainoptions'].length; jdx++) {
|
|
||||||
file.write(' "' + domains[idx]['domainoptions'][jdx] + '",\n');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
file.write(' ]\n');
|
|
||||||
file.write('}});\n');
|
file.write('}});\n');
|
||||||
}
|
}
|
||||||
|
file.write('domain.update({where:{\n');
|
||||||
|
file.write('name: "' + domains[idx]['name'] + '"\n');
|
||||||
|
file.write('},set:{\n');
|
||||||
|
file.write('domainoptions: [\n');
|
||||||
|
if (domains[idx]['domainoptions']) {
|
||||||
|
for (jdx=0; jdx<domains[idx]['domainoptions'].length; jdx++) {
|
||||||
|
file.write(' "' + domains[idx]['domainoptions'][jdx] + '",\n');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file.write(' ]\n');
|
||||||
|
file.write('}});\n');
|
||||||
}
|
}
|
||||||
// Alias
|
// Alias
|
||||||
var aliases = emailalias.search();
|
var aliases = emailalias.search();
|
||||||
|
Loading…
Reference in New Issue
Block a user