From: ivan Date: Fri, 30 Jan 2004 03:58:23 +0000 (+0000) Subject: add default freebsd and linux suspension/unsuspension commands, work around FreeBSD... X-Git-Tag: NET_WHOIS_RAW_0_31~160 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=7bd42d6a73d2f21cffb9f0e3071e2527237c9e25 add default freebsd and linux suspension/unsuspension commands, work around FreeBSD pw(1) lack of locking, and don't prepend "*SUSPENDED* " to suspend an account anymore --- diff --git a/FS/FS/part_export.pm b/FS/FS/part_export.pm index 1b46841ec..a27213773 100644 --- a/FS/FS/part_export.pm +++ b/FS/FS/part_export.pm @@ -576,13 +576,13 @@ tie my %shellcommands_options, 'Tie::IxHash', type =>'checkbox', }, 'suspend' => { label=>'Suspension command', - default=>'', + default=>'usermod -L $username', }, 'suspend_stdin' => { label=>'Suspension command STDIN', default=>'', }, 'unsuspend' => { label=>'Unsuspension command', - default=>'', + default=>'usermod -U $username', }, 'unsuspend_stdin' => { label=>'Unsuspension command STDIN', default=>'', @@ -927,7 +927,7 @@ tie my %forward_shellcommands_options, 'Tie::IxHash', 'desc' => 'Real-time export via remote SSH (i.e. useradd, userdel, etc.)', 'options' => \%shellcommands_options, 'nodomain' => 'Y', - 'notes' => 'Run remote commands via SSH. Usernames are considered unique (also see shellcommands_withdomain). You probably want this if the commands you are running will not accept a domain as a parameter. You will need to setup SSH for unattended operation.

Use these buttons for some useful presets:The following variables are available for interpolation (prefixed with new_ or old_ for replace operations): ', + 'notes' => 'Run remote commands via SSH. Usernames are considered unique (also see shellcommands_withdomain). You probably want this if the commands you are running will not accept a domain as a parameter. You will need to setup SSH for unattended operation.

Use these buttons for some useful presets:The following variables are available for interpolation (prefixed with new_ or old_ for replace operations): ', }, 'shellcommands_withdomain' => {