#!/bin/bash
##################################################################################
# Script file name ..: menu_multi_template.sh
# Description........: script file for MRC Consulting LLC
#                    : this is a menu file for root stored in a central location
#                    : this file is called from ./mr.sh located in the
# Customer...........: MRC Consulting
##################################################################################
# Author.......: Michael Culp
# Contact......: Michael Culp MRC Consulting LLC
# Phone/text...: 864.248.6284 or 864.630.2118
# email........: mike.culp@gmail.com mculp@it-remote.com
# Created......: 10/16/2017
# Last modified: 10/30/2019
# Modified By..: Michael Culp
# Comments.....: Add an ELSEIF section as seen below for the hostname
#              : you would like to add
#              : in the .bash_profile source the mrcenv_root file
#              : even if there is no share use this method and when a share location
#              : becomes available you can easily switch
#              : then simply . ./mrcenv in order to source it or set it here
#              : When this is sourced it makes a copy of itself locally to /root
#              : If the shared location is not available it can use the local copy
#              : we can add code to check share drive and if not available simply use correct file
# Script type..: root environment source file
# Dependency...: none
#              : mrcenv_root_001
#              :
# How to implement:
#                 : change the ./bash_profile to source this file
#                 : be sure to change the else if to accommodate the hostname
#                 : we set the env variables based on hostname
##################################################################################
# This originally started in the local server /root
# directory, to provide more reuse it is now running
# in /oracle/admin/scripts/menu
#####################################################

mrc_scripts()
###################################################
# Check to see if MRC scripts are installed
###################################################
{
if [ ! -d "/oracle/admin/scripts" ]; then
   echo "mrc scripts are not installed ..."
   export MRC_SCR=N
   # exit 1
else
   echo "mrc scripts are installed ......."
   export MRC_SCR=Y
fi
echo "MRC Scripts installed?...: "$MRC_SCR

}


Ready for Action?

LET'S GO!
Copyright 2024 IT Remote dot com
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram