%info = (
'svc' => 'svc_domain',
- 'desc' => 'Run remote commands via SSH, for domains.',
+ 'desc' => 'Run remote commands via SSH, for domains (qmail, ISPMan).',
'options' => \%options,
'notes' => <<'END'
Run remote commands via SSH, for domains. You will need to
this.form.userdel.value = "";
this.form.usermod.value = "";
'>
+ <LI>
+ <INPUT TYPE="button" VALUE="ISPMan CLI" onClick='
+ this.form.useradd.value = "/usr/local/ispman/bin/ispman.addDomain -d $domain changeme";
+ this.form.userdel.value = "/usr/local/ispman/bin/ispman.deleteDomain -d $domain";
+ this.form.usermod.value = "";
+ '>
</UL>
The following variables are available for interpolation (prefixed with <code>new_</code> or <code>old_</code> for replace operations):
<UL>
sub _export_command {
my ( $self, $action, $svc_domain) = (shift, shift, shift);
my $command = $self->option($action);
+ return '' if $command =~ /^\s*$/;
#set variable for the command
no strict 'vars';