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:
parent
a427520272
commit
4c8f892d03
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user