X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fdomain_shellcommands.pm;h=8e85d71e17d36ad8961081f1ab5fe38d9ff5024e;hb=5f9edcbe9fb3b3eb905614927aa6120d50c06ff1;hp=cf560339421fac59a99268a0cb4ba69e0a792598;hpb=ebc86db916baf888acf7472c6ec781a678608481;p=freeside.git
diff --git a/FS/FS/part_export/domain_shellcommands.pm b/FS/FS/part_export/domain_shellcommands.pm
index cf5603394..8e85d71e1 100644
--- a/FS/FS/part_export/domain_shellcommands.pm
+++ b/FS/FS/part_export/domain_shellcommands.pm
@@ -1,11 +1,59 @@
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 (qmail, ISPMan).',
+ '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
+