equal
deleted
inserted
replaced
158 # avoid 'Found = in conditional, should be ==' warnings |
158 # avoid 'Found = in conditional, should be ==' warnings |
159 no warnings qw(syntax); |
159 no warnings qw(syntax); |
160 my $user_dir = "$conf->{dav_base}/$user"; |
160 my $user_dir = "$conf->{dav_base}/$user"; |
161 my $err; |
161 my $err; |
162 rmtree($user_dir, error => $err) |
162 rmtree($user_dir, error => $err) |
163 or $rc = -1 and warn "Errors occurred during rmtree '$user_dir': ", @{$err}; |
163 or $rc = -1 and defined $err and warn "Errors occurred during rmtree '$user_dir': ", @{$err}; |
164 |
164 |
165 my $htpasswd_file = $conf->{htpasswd}; |
165 my $htpasswd_file = $conf->{htpasswd}; |
166 my $htpasswd = new Apache::Htpasswd $htpasswd_file; |
166 my $htpasswd = new Apache::Htpasswd $htpasswd_file; |
167 $htpasswd->htDelete($user) |
167 $htpasswd->htDelete($user) |
168 or $rc = -1 and warn "Can't htdelete '$user': ", $htpasswd->error; |
168 or $rc = -1 and warn "Can't htdelete '$user': ", $htpasswd->error; |
208 =head2 dav-useradd |
208 =head2 dav-useradd |
209 |
209 |
210 Add an at job to remove the user later. Make a directory for the user. Chown |
210 Add an at job to remove the user later. Make a directory for the user. Chown |
211 that directory to the webserver user and group. Add the user to an htpasswd |
211 that directory to the webserver user and group. Add the user to an htpasswd |
212 file. Place a config snippet for the users directory inside a directory (which |
212 file. Place a config snippet for the users directory inside a directory (which |
213 is included from the apache config, other webservers may also work). Reload |
213 is included from the apache config). Reload apache (or maybe restart is |
214 apache (or maybe restart is required). |
214 required). |
215 |
215 |
216 =head2 dav-useradd.cgi |
216 =head2 dav-useradd.cgi |
217 |
217 |
218 Is supposed to do the same as dav-useradd. |
218 Is supposed to do the same as dav-useradd. |
219 |
219 |
254 |
254 |
255 F</etc/apache2/dav.d> |
255 F</etc/apache2/dav.d> |
256 |
256 |
257 =head1 REQUIRES |
257 =head1 REQUIRES |
258 |
258 |
259 at from the 'at' job scheduler package. |
259 at from the 'at' job scheduler package. Several perl modules (should be installed automatically). |
260 |
260 |
261 =head1 AUTHOR |
261 =head1 AUTHOR |
262 |
262 |
263 Matthias Förste <foerste@schlittermann.de> |
263 Matthias Förste <foerste@schlittermann.de> |
264 |
264 |