fi
if [ -e drone_file_apt.list ]
- then
- PG_Deps_Warning () { ### Dependency install error message
- echo
- echo "*********"
- echo "WARNING!! Failed to install: libpq5 libpq-dev postgresql-client-9.1"
- echo "*********"
- sleep 5
- }
- echo "Installing Dependencies"
- sleep 2
- apt-get update
- if [ "$PKG_SET" = "0" ]
- then
- aptitude -t squeeze-backports -yq install libpq5 libpq-dev postgresql-client-9.1 || PG_Deps_Warning
- elif [ -z "$PKG_SET" ] ; then
- aptitude -yq install libpq5 libpq-dev postgresql-client-9.1 || PG_Deps_Warning
- fi
- apt-get update && apt-get -y install $(cat drone_file_apt.list)
+ $APT_TOOL update && $APT_TOOL -y install $(cat drone_file_apt.list)
fi
if [ -e debconf-settings ]
--shell /bin/bash --group --gecos "PostgreSQL administrator" --uid "$PG_UID" postgres
fi
fi
- apt-get update 2>&1 | tee -a $INSTALL_LOG
- apt-get -y install $(cat tar_file_apt.list) 2>&1 | tee -a "$INSTALL_LOG"
+ $APT_TOOL update 2>&1 | tee -a $INSTALL_LOG
+ $APT_TOOL -y install $(cat tar_file_apt.list) 2>&1 | tee -a "$INSTALL_LOG"
fi
PG_Deps_Warning () { ### Dependency install error message
sleep 2
if ! dpkg -l | grep -q evergreen-ils
then
- apt-get update
+ $APT_TOOL update
if [ "$PKG_SET" = "0" ]
then
aptitude -t squeeze-backports -yq install libpq5 libpq-dev postgresql-client-${PG_VER} || PG_Deps_Warning
echo "ldirector-ssl-no-verify not found"
echo "installing standard ldirector from repos..."
read -p "Press [Enter] to continue" CONT
- apt-get install ldirectord
+ $APT_TOOL install ldirectord
fi
echo "CONFIG_FILE=/etc/ha.d/ldirectord.cf" >> /etc/default/ldirectord
sleep 2
if [ "$PKG_SET" = "0" ] #setup backports if debian 6.x
then
- apt-get update
+ $APT_TOOL update
aptitude -t squeeze-backports -yq install postgresql-${PG_VER} postgresql-contrib-${PG_VER} postgresql-plperl-${PG_VER} postgresql-server-dev-${PG_VER} || DBInstallErr
elif [ -z "$PKG_SET" ] ; then
aptitude -yq install postgresql-${PG_VER} postgresql-contrib-${PG_VER} postgresql-plperl-${PG_VER} postgresql-server-dev-${PG_VER} || DBInstallErr
then
### Install Icinga
echo;echo -e $COL_BR_GREEN "Installing latest Icinga for Monitoring"$COL_RESET;echo
- apt-get update && apt-get -y install icinga nagios-nrpe-plugin nagios-nrpe-server
+ $APT_TOOL update && $APT_TOOL -y install icinga nagios-nrpe-plugin nagios-nrpe-server
### Configure Icinga/Nagios
[ -e "/etc/icinga/commands.cfg" ] && mv /etc/icinga/commands.cfg /etc/icinga/commands.cfg-orig
[ -e "/etc/icinga/objects/services.cfg" ] && mv /etc/icinga/objects/services.cfg /etc/icinga/objects/services.cfg-orig
echo;echo "Apache2 not installed yet"
echo "installing Apache2..."
sleep 1
- apt-get install apache2 openssl
+ $APT_TOOL install apache2 openssl
Config_Apache2_Default_SSL
a2ensite default-ssl.conf
fi
useradd -m -u 2000 -s /bin/bash opensrf
fi
chown -R opensrf:opensrf /storage/reports-output
- apt-get install nfs-kernel-server
+ $APT_TOOL install nfs-kernel-server
fi
### make sure the permissions are correct.