Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions not set on keystore #30

Open
phoenixv opened this issue Dec 2, 2018 · 0 comments
Open

Permissions not set on keystore #30

phoenixv opened this issue Dec 2, 2018 · 0 comments

Comments

@phoenixv
Copy link

phoenixv commented Dec 2, 2018

Some installations run the controller as a dedicated user, ubnt in many cases. The script does not check for permissions and can render the controller unusable as the keystore cannot be loaded. The simple hardcoded solution was adding two variables:

UBNT_USER=ubnt
UBNT_GROUP=ubnt

And this addition before the controller is restarted.

#Fix permissions
chown ${UBNT_USER}.${UBNT_GROUP} ${KEYSTORE}

Storing the existing permissions during the backup process may be cleaner, but since this variables must be modified before use anyway this method is sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant