[go: up one dir, main page]

Menu

[r93]: / conf / rhm.conf  Maximize  Restore  History

Download this file

75 lines (66 with data), 2.2 kB

#
# Common RHM settings go here. Each RHM tool will source this file.  This
#  file looks for local RHM customizations found in rhm.local.  To create
#  rhm.local, use the rhm.local-template.  
#
#
#    Remote Host Manager - UNIX System Administration host management tool.
#    Copyright (C) 2010,  David Paper <cerberus@ginch.org>
#
#    This program 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 3 of the License, or
#    (at your option) any later version.
#
#    This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
#

###############################################################################
#Things in this file shouldn't need changing.

AWK=$(which awk)
CHMOD=$(which chmod)
CHOWN=$(which chown)
CHGRP=$(which chgrp)
CP=$(which cp)
DATE=$(which date)
DIFF=$(which diff)
FIND=$(which find)
GREP=$(which grep)
GZIP=$(which gzip)
HOST=$(which host)
ID=$(which id)
LOGGER=$(which logger)
LS=$(which ls)
MKTEMP=$(which mktemp)
PERL=$(which perl)
PSQL=$(which psql)
PWD=$(which pwd)
RM=$(which rm)
RSYNC=$(which rsync)
SED=$(which sed)
SORT=$(which sort)
SSH=$(which ssh)
TAIL=$(which tail)
TAR=$(which tar)
TOUCH=$(which touch)
WC=$(which wc)

#Arguments for connecting to the RHM DB PostgreSQL instance
RHMDB_ARGS="-A -q -t"

#Makes debugging easier.
export PS4='$LINENO '

#Timeout value
TIMEOUT=15

#Read in the local customizations file, and error if you can't find it.
# Putting this at the end allows users to override the defaults set above.
. ../conf/rhm.local

if [ $? -ne 0 ]; then
        echo "ERROR: Can't find RHM local configuration file rhm.local!"
        exit 1
fi

#Lets psql try to use a password if the user has set one above
export PGPASSWORD=$(${PERL} -e "print unpack(\"u\", \"${RHMDB_PASS}\");")