Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nginx Ldap Auth
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Nginx Ldap Auth
Commits
bbbde8d2
Unverified
Commit
bbbde8d2
authored
Feb 7, 2019
by
A compound of Fe and O
Committed by
GitHub
Feb 7, 2019
Browse files
Options
Downloads
Plain Diff
Merge pull request #56 from alexjfisher/fix_spec_file
Fix logrotate and update rpm spec file
parents
d9a21498
61d87772
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
nginx-ldap-auth.logrotate
+1
-0
1 addition, 0 deletions
nginx-ldap-auth.logrotate
rpm/nginx-ldap-auth.spec
+9
-4
9 additions, 4 deletions
rpm/nginx-ldap-auth.spec
with
10 additions
and
4 deletions
nginx-ldap-auth.logrotate
+
1
−
0
View file @
bbbde8d2
/var/log/nginx-ldap-auth/daemon.log {
/var/log/nginx-ldap-auth/daemon.log {
compress
delaycompress
delaycompress
create 0644 nginx-ldap-auth nginx-ldap-auth
create 0644 nginx-ldap-auth nginx-ldap-auth
su nginx-ldap-auth nginx-ldap-auth
su nginx-ldap-auth nginx-ldap-auth
...
...
This diff is collapsed.
Click to expand it.
rpm/nginx-ldap-auth.spec
+
9
−
4
View file @
bbbde8d2
%global logdir /var/log/%name
Name: nginx-ldap-auth
Name: nginx-ldap-auth
Version: 0.0.
3
Version: 0.0.
5
Release: 1%{?dist}
Release: 1%{?dist}
Summary: NGINX Plus LDAP authentication daemon
Summary: NGINX Plus LDAP authentication daemon
...
@@ -31,14 +33,17 @@ install -d -m755 %buildroot/etc/default
...
@@ -31,14 +33,17 @@ install -d -m755 %buildroot/etc/default
install -m644 %name.default %buildroot/etc/default/%name
install -m644 %name.default %buildroot/etc/default/%name
install -d -m755 %buildroot/etc/logrotate.d
install -d -m755 %buildroot/etc/logrotate.d
install -m644 %name.logrotate %buildroot%_sysconfdir/logrotate.d/%name
install -m644 %name.logrotate %buildroot%_sysconfdir/logrotate.d/%name
mkdir -p %{buildroot}%{logdir}
touch %{buildroot}%{logdir}/daemon.log
%files
%files
%doc README.md nginx-ldap-auth.conf backend-sample-app.py LICENSE
%doc README.md nginx-ldap-auth.conf backend-sample-app.py LICENSE
/etc/default/%name
%config(noreplace)
/etc/default/%name
%_sysconfdir/logrotate.d/%name
%config(noreplace)
%_sysconfdir/logrotate.d/%name
%_bindir/nginx-ldap-auth-daemon
%_bindir/nginx-ldap-auth-daemon
%_unitdir/%name.service
%_unitdir/%name.service
%attr(750,nginx-ldap-auth,nginx-ldap-auth) %dir %{logdir}
%config %ghost %attr(640,nginx-ldap-auth,nginx-ldap-auth) %{logdir}/daemon.log
%post
%post
getent group nginx-ldap-auth > /dev/null || groupadd -r nginx-ldap-auth
getent group nginx-ldap-auth > /dev/null || groupadd -r nginx-ldap-auth
...
...
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