Skip to content

Commit

Permalink
Merge pull request #138 from tobami/fix-logpath-creation
Browse files Browse the repository at this point in the history
Create logpath using the path part of the LOGFILE
Closes #135
  • Loading branch information
tobami committed Jan 15, 2013
2 parents 4709725 + 86d2985 commit f1c119a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion littlechef/solo.py
Expand Up @@ -23,7 +23,7 @@

from littlechef import cookbook_paths
from littlechef.lib import credentials
from littlechef import LOGFILE as logging_path
from littlechef import LOGFILE


# Path to local patch
Expand Down Expand Up @@ -74,6 +74,7 @@ def configure(current_node=None):
error += "Do you have sudo rights?"
abort(error)
# Set up chef solo configuration
logging_path = os.path.dirname(LOGFILE)
if not exists(logging_path):
sudo('mkdir -p {0}'.format(logging_path))
if not exists('/etc/chef'):
Expand Down Expand Up @@ -318,3 +319,4 @@ def _emerge_install():
"""Install Chef for Gentoo"""
with show('running'):
sudo("USE='-test' ACCEPT_KEYWORDS='~amd64' emerge -u chef")

0 comments on commit f1c119a

Please sign in to comment.