Ticket #1848 (closed enhancement: fixed)
zenpack.py needs to behave better when run as non-zenoss user
| Reported by: | jstevens | Owned by: | jstevens |
|---|---|---|---|
| Priority: | 2 - High | Milestone: | zenoss-2.2 |
| Component: | ZenPack | Version: | 2.0.1 |
| Severity: | low | Keywords: | zenoss-2.1.1-patched |
| Cc: | Documentation: | Not required | |
| Installer: | Reviewed: | yes |
Description
To do an install or remove zenpack.py needs $ZENHOME to be defined. Unfortunate events ensue when this is not the case, such as when people run zenpack --install as root (which seems like a reasonable thing to do.)
At a minimum zenpack.py should give an error and exit if $ZENHOME doesn't exist or doesn't look reasonable. Better yet would be to su - zenoss maybe.
Change History
Note: See
TracTickets for help on using
tickets.