diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-12-23 00:13:57 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-12-23 00:13:57 +0000 |
commit | 31c96a14e95d6a353b5cff627216ce1c9dd02481 (patch) | |
tree | 24c65b2d71c7c85e76aba6754c7460f1860b7859 /etc/rc.php_ini_setup | |
parent | 3937f1493b3cb89e06d66887b0e70924daffc53b (diff) | |
download | pfsense-31c96a14e95d6a353b5cff627216ce1c9dd02481.zip pfsense-31c96a14e95d6a353b5cff627216ce1c9dd02481.tar.gz |
Set upload directory to /root for embedded
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-x | etc/rc.php_ini_setup | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index 49699e2..99d9f0e 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -30,6 +30,13 @@ PLATFORM=`cat /etc/platform` EXTENSIONSDIR="/usr/local/lib/php/20060613/" APCSHMEMSIZE="25" +# Set upload directory +if [ "$PLATFORM" = "embedded" ]; then + UPLOADTMPDIR="/root" +else + UPLOADTMPDIR="/tmp" +fi + # Define php modules. Do not add .so, it will # be done automatically by the script below. PHPMODULES="apc \ @@ -77,7 +84,7 @@ max_execution_time = 99999999 max_input_time = 99999999 register_argc_argv = On file_uploads = On -upload_tmp_dir = /tmp +upload_tmp_dir = ${UPLOADTMPDIR} upload_max_filesize = 100M post_max_size = 100M html_errors = Off |