#!/bin/bash #install all pear packages from /home/system/peartmp: #We make sure pear_PEAR is installed first. for PKG in /home/system/peartmp/*PEAR* /home/system/peartmp/*; do [ -e $PKG ] || continue rm -r /tmp/pear 2>/dev/null /usr/php5/bin/pear install -O -f $PKG || exit 1; done exit 0