X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fdomain_shellcommands.pm;h=d8ae0c376620884675befaca68ef91a122514e28;hp=0edbab0ddb751ff61ca138d14f690ffd558dbdda;hb=dabdf357484badff95afcae50b08ec1c3bb58343;hpb=c0567c688084e89fcd11bf82348b6c418f1254ac
diff --git a/FS/FS/part_export/domain_shellcommands.pm b/FS/FS/part_export/domain_shellcommands.pm
index 0edbab0dd..d8ae0c376 100644
--- a/FS/FS/part_export/domain_shellcommands.pm
+++ b/FS/FS/part_export/domain_shellcommands.pm
@@ -1,11 +1,54 @@
package FS::part_export::domain_shellcommands;
use strict;
-use vars qw(@ISA);
+use vars qw(@ISA %info);
+use Tie::IxHash;
use FS::part_export;
@ISA = qw(FS::part_export);
+tie my %options, 'Tie::IxHash',
+ 'user' => { label=>'Remote username', default=>'root' },
+ 'useradd' => { label=>'Insert command',
+ default=>'',
+ },
+ 'userdel' => { label=>'Delete command',
+ default=>'',
+ },
+ 'usermod' => { label=>'Modify command',
+ default=>'',
+ },
+;
+
+%info = (
+ 'svc' => 'svc_domain',
+ 'desc' => 'Run remote commands via SSH, for domains.',
+ 'options' => \%options,
+ 'notes' => <<'END'
+Run remote commands via SSH, for domains. You will need to
+setup SSH for unattended operation.
+
Use these buttons for some useful presets:
+
new_
or old_
for replace operations):
+$domain
+ $qdomain
- domain with periods replaced by colons
+ $uid
- of catchall account
+ $gid
- of catchall account
+ $dir
- home directory of catchall account
+