1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Add tmpdir configuration parameter to servers

This commit is contained in:
Daniel Molina 2012-05-09 16:02:16 +02:00
parent a427520272
commit 4c8f892d03
6 changed files with 17 additions and 5 deletions

View File

@ -34,8 +34,8 @@ fi
setup()
{
eval `grep ^IMAGE_DIR= $ECONE_ETC`
export TMPDIR=$IMAGE_DIR/tmp
TMPDIR=$(grep ^:tmpdir: $ECONE_ETC|awk '{print $2}')
test -n $TMDIR && export TMPDIR
mkdir -p $TMPDIR
if [ -f $ECONE_LOCK_FILE ]; then

View File

@ -18,6 +18,9 @@
# Server Configuration
#############################################################
# Directory to store temp files when uploading images
:tmpdir: /var/tmp/one
# OpenNebula sever contact information
:one_xmlrpc: http://localhost:2633/RPC2

View File

@ -34,9 +34,9 @@ fi
setup()
{
eval `grep ^IMAGE_DIR= $OCCI_ETC `
export TMPDIR=$IMAGE_DIR/tmp
mkdir -p $TMPDIR
TMPDIR=$(grep ^:tmpdir: $OCCI_ETC|awk '{print $2}')
test -n $TMDIR && export TMPDIR
mkdir -p $TMPDIR
if [ -f $OCCI_LOCK_FILE ]; then
if [ -f $OCCI_PID ]; then

View File

@ -18,6 +18,9 @@
# Server configuration
#############################################################
# Directory to store temp files when uploading images
:tmpdir: /var/tmp/one
# OpenNebula sever contact information
:one_xmlrpc: http://localhost:2633/RPC2

View File

@ -35,6 +35,9 @@ fi
setup()
{
TMPDIR=$(grep ^:tmpdir: $SUNSTONE_CONF|awk '{print $2}')
test -n $TMDIR && export TMPDIR
mkdir -p $TMPDIR
if [ -f $SUNSTONE_LOCK_FILE ]; then
if [ -f $SUNSTONE_PID ]; then

View File

@ -18,6 +18,9 @@
# Server Configuration
#############################################################
# Directory to store temp files when uploading images
:tmpdir: /var/tmp/one
# OpenNebula sever contact information
:one_xmlrpc: http://localhost:2633/RPC2