Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a --disable-rita command line option. #392

Merged
merged 1 commit into from Feb 19, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+20 −6
Diff settings

Always

Just for now

Copy path View file
@@ -42,6 +42,7 @@ __entry() {
# Optional Dependencies
_INSTALL_BRO=true
_INSTALL_MONGO=true
_INSTALL_RITA=true

# Install locations
_INSTALL_PREFIX=/usr/local
@@ -74,12 +75,20 @@ __entry() {
--disable-mongo)
_INSTALL_MONGO=false
;;
--disable-rita)
_INSTALL_RITA=false
;;
*)
;;
esac
shift
esac
shift
done

if [ "$_INSTALL_BRO" = "false" -a "$_INSTALL_MONGO" = "false" -a "$_INSTALL_RITA" = "false" ]; then
echo "No packages were selected for installation, exiting."
exit 0
fi

if ! [ $(id -u) = 0 ]; then
echo "You do not have permissions to install RITA!"
exit 1
@@ -152,7 +161,10 @@ __install() {
fi
fi

__load "$_ITEM Installing RITA" __install_rita
if [ "$_INSTALL_RITA" = "true" ]; then
__load "$_ITEM Installing RITA" __install_rita
fi

if [ "$_REINSTALL_RITA" = "true" ]; then
printf "$_IMPORTANT $_RITA_CONFIG_FILE may need to be updated for this version of RITA. \n"
printf "$_IMPORTANT A default config file has been created at $_RITA_REINSTALL_CONFIG_FILE. \n"
@@ -440,9 +452,11 @@ __explain() {
if [ $_MONGO_INSTALLED = "false" -a $_INSTALL_MONGO = "true" ]; then
printf "$_SUBITEM Install MongoDB \n"
fi
printf "$_SUBITEM Install RITA to $_BIN_PATH/rita \n"
printf "$_SUBITEM Create a runtime directory for RITA in $_VAR_PATH \n"
printf "$_SUBITEM Create a configuration directory for RITA in $_CONFIG_PATH \n"
if ( ! __installation_exist ) && [ $_INSTALL_RITA = "true" ]; then
printf "$_SUBITEM Install RITA to $_BIN_PATH/rita \n"
printf "$_SUBITEM Create a runtime directory for RITA in $_VAR_PATH \n"
printf "$_SUBITEM Create a configuration directory for RITA in $_CONFIG_PATH \n"
fi
sleep 5s
}

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.