Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simp
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
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
CHEF
cookbooks
simp
Commits
35cbb2dc
Commit
35cbb2dc
authored
1 year ago
by
André Kerkhoff
Browse files
Options
Downloads
Patches
Plain Diff
Fix permissions for crontabs
parent
985cd2d4
Branches
main
No related tags found
No related merge requests found
Pipeline
#5921
failed
1 year ago
Stage: lint
Stage: chefspec
Stage: kitchen
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
files/default/scripts/fix-permissions
+5
-1
5 additions, 1 deletion
files/default/scripts/fix-permissions
metadata.rb
+1
-1
1 addition, 1 deletion
metadata.rb
with
6 additions
and
2 deletions
files/default/scripts/fix-permissions
+
5
−
1
View file @
35cbb2dc
...
...
@@ -27,7 +27,11 @@ for DIR in "$@"; do
cut
-f
2-
-d
' '
"
$DIR
/.permission_info"
|
while
read
-r
FPATH UIDGID MODE
;
do
[
-e
"
$DIR
/
$FPATH
"
]
||
continue
# ignore missing files
chown
-Rc
"
$UIDGID
"
"
$DIR
/
$FPATH
"
if
[
"
$FPATH
"
=
spool/cron/crontab
]
;
then
chown
-c
"
$UIDGID
"
"
$DIR
/
$FPATH
"
else
chown
-Rc
"
$UIDGID
"
"
$DIR
/
$FPATH
"
fi
chmod
-c
"
$MODE
"
"
$DIR
/
$FPATH
"
done
done
This diff is collapsed.
Click to expand it.
metadata.rb
+
1
−
1
View file @
35cbb2dc
...
...
@@ -9,4 +9,4 @@ issues_url 'https://git.gsi.de/chef/cookbooks/nebosi/issues'
chef_version
'>= 13'
supports
'debian'
version
'0.4.
0
'
version
'0.4.
1
'
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