mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Define full path to binaries
This commit is contained in:
parent
c0c7eb483b
commit
07b1797b45
@ -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
|
||||
|
||||
@ -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']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user