Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rpm-icinga2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
packaging
rpm-icinga2
Commits
6c09a2c5
Unverified
Commit
6c09a2c5
authored
7 years ago
by
Tim Hardeck
Browse files
Options
Downloads
Patches
Plain Diff
Fix permission issues on SUSE distributions
The icinga/cmd file was moved from the bin package to common.
parent
37104df3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
icinga2.spec
+3
-12
3 additions, 12 deletions
icinga2.spec
with
3 additions
and
12 deletions
icinga2.spec
+
3
−
12
View file @
6c09a2c5
...
...
@@ -97,7 +97,6 @@ Summary: Icinga 2 binaries and libraries
Group: System/Monitoring
%if "%{_vendor}" == "suse"
PreReq: permissions
Provides: monitoring_daemon
Recommends: monitoring-plugins
%if 0%{?suse_version} >= 1310
...
...
@@ -172,6 +171,7 @@ Requires(post): shadow-utils
%endif
BuildRequires: logrotate
%if "%{_vendor}" == "suse"
PreReq: permissions
Provides: user(%{icinga_user})
Provides: group(%{icinga_group})
Provides: group(%{icingacmd_group})
...
...
@@ -424,27 +424,18 @@ getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /s
%if 0%{?use_systemd}
%service_add_pre %{name}.service
%endif
%endif
%if "%{_vendor}" == "suse"
%verifyscript bin
%verifyscript common
%verify_permissions -e %{_rundir}/%{name}/cmd
%endif
%post bin
%post common
# suse
%if "%{_vendor}" == "suse"
%if 0%{?suse_version} >= 1310
%set_permissions %{_rundir}/%{name}/cmd
%endif
%endif #suse/rhel
%post common
# suse
%if "%{_vendor}" == "suse"
%if 0%{?use_systemd}
%fillup_only %{name}
%service_add_post %{name}.service
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment