Commit 065a030a authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis
Browse files

snf-deploy: Fix image_dir setup


Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent e380a4bb
......@@ -782,8 +782,8 @@ def setup_nfs_dirs():
mkdir -p data
chown www-data:www-data data
chmod g+ws data
mkdir -p /srv/okeanos
""".format(env.env.pithos_dir)
mkdir -p {1}
""".format(env.env.pithos_dir, env.env.image_dir)
try_run(cmd)
......@@ -1030,6 +1030,7 @@ def setup_image_host():
"synnefo_db_passwd": env.env.synnefo_db_passwd,
"pithos_dir": env.env.pithos_dir,
"db_node": env.env.db.ip,
"image_dir": env.env.image_dir,
}
custom = customize_settings_from_tmpl(tmpl, replace)
try_put(custom, tmpl)
......
......@@ -8,7 +8,7 @@
# IMAGE_DIR: directory location for disk images
# IMAGE_DIR="/var/lib/snf-image"
IMAGE_DIR=/srv/okeanos
IMAGE_DIR=%IMAGE_DIR%
# IMAGE_DEBUG: turn on debugging output for the scripts
# IMAGE_DEBUG=no
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment