FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Common functions required by init scripts. More...
Go to the source code of this file.
Functions | |
guessSysconfdir () | |
bootstrap ($sysconfdir="") | |
Determine SYSCONFDIR, parse fossology.conf. More... | |
readlineTimeout ($seconds, $default) | |
Using bash's read command, read input from STDIN. More... | |
Common functions required by init scripts.
Definition in file fossinit-common.php.
bootstrap | ( | $sysconfdir = "" | ) |
Determine SYSCONFDIR, parse fossology.conf.
$sysconfdir | Typically from the caller's -c command line parameter |
The global $SYSCONFDIR is also set for backward compatibility.
Since so many files expect directory paths that used to be in pathinclude.php to be global, this function will define the same globals (everything in the DIRECTORIES section of fossology.conf).
Definition at line 69 of file fossinit-common.php.
readlineTimeout | ( | $seconds, | |
$default | |||
) |
Using bash's read command, read input from STDIN.
This function runs a new bash shell and execute read command on it with a timeout set.
integer | $seconds | Timeout in seconds |
string | $default | Default value to return (in case of timeout) |
Definition at line 132 of file fossinit-common.php.