ExtLib - common functions for use by Extensions.
Append a line to a text file.
Check if a string is a true value such as 1, true or yes. The match is not case sensitive. check_bool() is useful for checking true values from the configuration file.
Change ownership of a list of files using symbolic user and group names.
Delete a given line from a text file.
Returns a warning message that can be put in generated config file. It takes an optional string so that you can change the comment string. If not defined, it will use '#' by default.
Generate a random password of given length (or 10 if not supplied). The password will use the characters from @valid or, if not supplied, the characters from the following list:
(0..9, 'a'..'z', 'A'..'Z', '@', '#', '%', '^', '*')
Make a directory and any missing parents. Similar to 'mkdir -p'.
Replace a given line in a text file with another line.
Recursively delete all files in a given directory, including the directory.
Run all executable files in a given dir with the given command line arguments. Does not recurse into sub directories.
Remove leading and trailing white space.
Change the atime and mtime of file to $time or the current time if $time is not defined.
Randy Smith <firstname.lastname@example.org>
This file is part of vuser. vuser is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. vuser is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with vuser; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA