forked from mozilla-services/heka
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add RPM pre-install script via CPack parameters
- Loading branch information
Andre F de Miranda
committed
Sep 21, 2015
1 parent
29b6709
commit 2327fea
Showing
2 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
USER="heka" | ||
GROUP=$USER | ||
HOMEBASE=/var/cache/hekad | ||
|
||
getent group $GROUP >/dev/null || groupadd -r $GROUP | ||
getent passwd $USER >/dev/null || useradd -r -g $GROUP -M -d $HOMEBASE -s /sbin/nologin -c "heka daemon" $USER | ||
install -d -m0755 -o$USER -g$GROUP $HOMEBASE | ||
exit 0 |