naparuba/shinken — Issue #205: installation procedure creates directory at 'build' stage
Author: guillomovitch
Created: 2012-02-29 10:29:00+00:00
State: open

the installation procedure in 1.0 version attempt to create final system directories at build stage, making 'python build' fails if attempted without admin privileges:
[guillaume@beria shinken-1.0]$ python setup.py build
[..]
error: /var/lib/shinken: Permission denied

This is caused by the following lines in copy_objects_file function:
for dirname in [self.var_path,self.run_path,self.log_path,discovery_dir]
if not os.path.exists(dirname):
os.makedirs(dirname)

This belong to install stage, not build stage