This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packaging: rpms: Add systemd support for openSUSE
Recent openSUSE releases have been migrated to systemd so use the %{suse_version} macro to detect if we are building on openSUSE so we can include the necessary systemd files and also perform the needed systemd steps. This also defines the 'suse_version' to 1315 which is what openSUSE Leap 42.x use. This also drops the buggy rhel7 conditional for the sysvinit script and use another 'find' command instead. The previous condition was wrong since it would also try to include the sysvinit file on openSUSE and Fedora which do not define the %rhel macro and as such the 0 < 7 conditional was always true.
- Loading branch information
Markos Chandras
committed
Jun 29, 2017
1 parent
cf0d1f4
commit 2211e5f
Showing
2 changed files
with
13 additions
and
17 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