#!/bin/sh

# ClonePanel - Manages duplicate accounts on two or more webservers,
# including snapshot backups, monitoring and failover dns.
# Copyright (C)2006 Chris Cheers, Internet Lynx.
# Contact chris[at]clonepanel[dot]com.
# Internet Lynx, PO Box 7117, Mannering Park, NSW 2259, Australia

# 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 2
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Version=0.33
# System commands used by scripts, and their full paths:

ID=/usr/bin/id;
ECHO=/bin/echo

RM=/bin/rm
MV=/bin/mv
CP=/bin/cp
TOUCH=/bin/touch
CHMOD=/bin/chmod
MKDIR=/bin/mkdir
RSYNC=/usr/bin/rsync
EXPR=/usr/bin/expr
CAT=/bin/cat
CUT=/bin/cut
GREP=/bin/grep
SSH=/usr/bin/ssh
DATE=/bin/date
AWK=/bin/awk
SED=/bin/sed

LS=/bin/ls
CRONTAB=/usr/bin/crontab
SSH_KEYGEN=/usr/bin/ssh-keygen
SORT=/bin/sort
UNIQ=/usr/bin/uniq
WC=/usr/bin/wc
FIND=/usr/bin/find

PERL=/usr/bin/perl
TIME=/usr/bin/time
HEAD=/usr/bin/head
TAIL=/usr/bin/tail

MYSQLDUMP=/usr/bin/mysqldump
MYSQL=/usr/bin/mysql

SLEEP=/bin/sleep
DIRNAME=/usr/bin/dirname
BASENAME=/bin/basename

WHO=/usr/bin/who
WHOAMI=/usr/bin/whoami
WRITE=/usr/bin/write
