Define full path to binaries

This commit is contained in:
sullrich 2009-11-29 18:33:24 -05:00
parent c0c7eb483b
commit 07b1797b45
2 changed files with 4 additions and 4 deletions

View File

@ -31,9 +31,9 @@ EXTENSIONSDIR="/usr/local/lib/php/20060613/"
# Grab amount of memory that is deteceted
if [ -f /var/log/dmesg.boot ]; then
AVAILMEM=`cat /var/log/dmesg.boot | grep "memory" | grep "avail" | awk '{ print $5 }' | cut -d'(' -f2 | cut -d'M' -f1`
AVAILMEM=`/bin/cat /var/log/dmesg.boot | /usr/bin/grep "memory" | /usr/bin/grep "avail" | /usr/bin/awk '{ print $5 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d'M' -f1`
else
AVAILMEM=`dmesg -a | grep "memory" | grep "avail" | awk '{ print $5 }' | cut -d'(' -f2 | cut -d'M' -f1`
AVAILMEM=`/sbin/dmesg -a | /usr/bin/grep "memory" | /usr/bin/grep "avail" | /usr/bin/awk '{ print $5 }' | /usr/bin/cut -d'(' -f2 | /usr/bin/cut -d'M' -f1`
fi
# Calculate APC SHM size according

View File

@ -177,7 +177,7 @@ if ($_POST) {
if (!$input_errors) {
$lockbckp = lock('config');
//$lockbckp = lock('config');
$host = "{$config['system']['hostname']}.{$config['system']['domain']}";
$name = "config-{$host}-".date("YmdHis").".xml";
@ -207,7 +207,7 @@ if ($_POST) {
}
}
unlock($lockbckp);
//unlock($lockbckp);
if ($_POST['encrypt']) {
$data = encrypt_data($data, $_POST['encrypt_password']);