DataSoft/Nova — Issue #50: Make InitUserConfigs() more robust
Author: DataSoft
Created: 2012-02-16 19:27:01+00:00
State: open

There are some corner cases that need to be considered in the InitUserConfigs() function. This is where Nova detects if the current user already has the necessary config files in their home directory, and sets up group permissions.

The current method for determining if the configs are present is just to peek and see if ~/.nova exists. But what happens if there is a single important file missing inside?

Also, we use the absence of ~/.nova as a trigger to add the user to the nova group. When really we should be directly testing the nova group to see if our user is in it.