This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
License
mono/mono-check
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
mono-check =========== This is a simple utility to check the correctness of Mono installation and its suitability to run ASP.NET applications. It is implemented in the bash shell script in the way that makes it possible and relatively easy to extend to support various Linux distributions. Currently the only supported distribution is the SuSE Linux family of operating systems. To add checks you need to create a file with the .check extension and put it in the scripts/checks/generic (for all operating systems), scripts/checks/suse (for suse) or scripts/checks/os_name (where os_name is known to the mono-check script, see the determine_os function in that script). All .check files in those directories that have the exec bit set will be sourced by the driver script and all the functions named check_* will be included in the run. Before running, the check_* functions are sorted using sort (1), alphabetical sort. Check files without the exec bit set will be ignored. To add non-check functions/scripts, put them in the scripts/generic/ (for all operating systems), scripts/suse/ (for the SuSE Linux family of systems) or scripts/os_name/ directories and give them names with .sh extension. As with the .check scripts, the .sh files need to have the exec bit set in order to be included by the driver script. The scripts/ directory itself is meant to hold only scripts included directly by name from the driver script. Both the checks and the scripts directory hierarchy support the following directory structure for non-generic checks/scripts: TOP_DIR/OS_VENDOR/OS_NAME/OS_RELEASE where TOP_DIR - either 'scripts' or 'scripts/checks' OS_VENDOR - e.g. suse OS_NAME - e.g. opensuse OS_RELEASE - e.g. 11.1 The directory hierarchy is sought for .check and .sh files in the following order TOP_DIR TOP_DIR/generic TOP_DIR/OS_VENDOR TOP_DIR/OS_VENDOR/OS_NAME TOP_DIR/OS_VENDOR/OS_NAME/OS_RELEASE This scaffolding allows for easy overloading of check/helper functions defined in the upper level directories (unless the functions are marked readonly in the files loaded prior to the one attempting to override them). To test the scripts create an mono-check.conf file in the same directory in which the main (mono-check) script lives and put the following line inside: SCRIPTS_DIR=./scripts Then export the SKU_DEBUG=1 environment variable and run ./mono-check TODO: more documentation
About
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published