-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore:Add user and group for xmidt-agent, as well as set the service …
…to preset (enabled).
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 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,5 @@ | ||
#!/bin/bash | ||
# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
systemctl preset xmidt-agent.service >/dev/null 2>&1 |
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,13 @@ | ||
#!/bin/bash | ||
# SPDX-FileCopyrightText: 2024 Comcast Cable Communications Management, LLC | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
getent group xmidt-agent > /dev/null || groupadd -r xmidt-agent | ||
getent passwd xmidt-agent > /dev/null || \ | ||
useradd \ | ||
-d /var/run/xmidt-agent \ | ||
-r \ | ||
-g xmidt-agent \ | ||
-s /sbin/nologin \ | ||
-c "Xmidt-Agent Client" \ | ||
xmidt-agent |