-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux: Don't create user for systemd units use DynamicUser
Signed-off-by: Björn Bidar <[email protected]>
- Loading branch information
Showing
3 changed files
with
5 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,10 +132,11 @@ install -m 0644 src/appstream/org.davmail.DavMail.appdata.xml $RPM_BUILD_ROOT%{_ | |
rm -rf $RPM_BUILD_ROOT | ||
|
||
%pre | ||
%if 0%{!?systemd_macros:1} | ||
/usr/sbin/groupadd -f -r davmail > /dev/null 2>&1 || : | ||
/usr/sbin/useradd -r -s /sbin/nologin -d /var/lib/davmail -M \ | ||
-g davmail davmail > /dev/null 2>&1 || : | ||
%if %systemd_macros | ||
%else | ||
%service_add_pre davmail.service | ||
%endif | ||
|
||
|
@@ -230,6 +231,7 @@ fi | |
- Create initial log file with systemd-tmpfiles | ||
- Harden systemd service | ||
- Add systemd system sevice template unit | ||
- Don't create user for systemd units use DynamicUser | ||
* Wed Jul 07 2021 Michal Suchanek <[email protected]> | ||
- Tumbleweed no longer supports init.d services and fails build when installed | ||
|
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