Skip to content

Commit

Permalink
feat: include example configuration in the RPM package
Browse files Browse the repository at this point in the history
  • Loading branch information
farzadghanei committed May 12, 2024
1 parent da606a6 commit cdfed9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions build/package/chkok.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Name: chkok
Version: 0.3.0
Release: 1%{?dist}
Summary: checks files and sockets attributes
Summary: checks attributes of files and sockets

License: MIT
URL: https://github.com/farzadghanei/chkok
Expand Down Expand Up @@ -33,6 +33,7 @@ rm -rf $RPM_BUILD_ROOT
%make_install
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
cp -a docs/man/chkok.1 $RPM_BUILD_ROOT/usr/share/man/man1/%{name}.1
cp -a examples/config.yaml example-config.yaml


%clean
Expand All @@ -41,7 +42,7 @@ rm -rf $RPM_BUILD_ROOT

%files
%license LICENSE
%doc README.rst
%doc README.rst example-config.yaml
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*

Expand Down
5 changes: 4 additions & 1 deletion examples/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
# configurations for chkok

# define how the checks should run
runners:
default:
timeout: 5m
Expand All @@ -24,7 +26,8 @@ runners:
# "X-Required-Header": "required-value"
# "X-Required-Header2": "" # header existence is required, not value


# define the checks to be run. Each check suite
# is a logical group of checks that should run sequentially.
check_suites:
etc:
- type: dir
Expand Down

0 comments on commit cdfed9a

Please sign in to comment.