Skip to content
Snippets Groups Projects
Commit 35cbb2dc authored by André Kerkhoff's avatar André Kerkhoff
Browse files

Fix permissions for crontabs

parent 985cd2d4
Branches main
No related tags found
No related merge requests found
Pipeline #5921 failed
......@@ -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
......@@ -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'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment