Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
Nginx Proxy Manager Dark
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab 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
Jonas Leder
Nginx Proxy Manager Dark
Commits
6f3a00c9
Unverified
Commit
6f3a00c9
authored
Jul 23, 2021
by
jc21
Committed by
GitHub
Jul 23, 2021
Browse files
Options
Downloads
Plain Diff
Merge pull request #1255 from jc21/fixes-crash-when-logrotation-fails
parents
ac0bb6be
fbae107c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/setup.js
+4
-2
4 additions, 2 deletions
backend/setup.js
docker/rootfs/etc/cont-init.d/01_perms.sh
+4
-0
4 additions, 0 deletions
docker/rootfs/etc/cont-init.d/01_perms.sh
with
8 additions
and
2 deletions
backend/setup.js
+
4
−
2
View file @
6f3a00c9
...
...
@@ -210,8 +210,10 @@ const setupLogrotation = () => {
const
intervalTimeout
=
1000
*
60
*
60
*
24
*
2
;
// 2 days
const
runLogrotate
=
async
()
=>
{
try
{
await
utils
.
exec
(
'
logrotate /etc/logrotate.d/nginx-proxy-manager
'
);
logger
.
info
(
'
Logrotate completed.
'
);
}
catch
(
e
)
{
logger
.
warn
(
e
);
}
};
logger
.
info
(
'
Logrotate Timer initialized
'
);
...
...
This diff is collapsed.
Click to expand it.
docker/rootfs/etc/cont-init.d/01_perms.sh
0 → 100755
+
4
−
0
View file @
6f3a00c9
#!/usr/bin/with-contenv bash
mkdir
-p
/data/logs
chown
-R
root:root /data/logs
\ No newline at end of file
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