logo

overlay

Personnal gentoo overlay
commit: be774b42c9115deee4b3c559abffb465318ccde4
parent: 73d610270d30acaa0a93d7f2f0237c3f002f1a4b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  2 Oct 2016 12:29:30 +0200

eclass/cron: Fix SuperUser

Diffstat:

eclass/cron.eclass | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/eclass/cron.eclass b/eclass/cron.eclass @@ -40,13 +40,13 @@ done # Both arguments are optional. Everything after 'dir' is considered # the permissions (same format as insopts). # -# ex: docrondir /some/dir -m 0770 -o root -g cron +# ex: docrondir /some/dir -m 0770 -o 0 -g cron # docrondir /some/dir (uses default perms) # docrondir -m0700 (uses default dir) docrondir() { # defaults - local perms="-m0750 -o root -g cron" dir="/var/spool/cron/crontabs" + local perms="-m0750 -o 0 -g cron" dir="/var/spool/cron/crontabs" if [[ -n $1 ]] ; then case "$1" in @@ -75,11 +75,11 @@ docrondir() { # # Both arguments are optional. # -# ex: docron -m 0700 -o root -g root ('exe' defaults to "cron") +# ex: docron -m 0700 -o -0 -g 0 ('exe' defaults to "cron") # docron crond -m 0110 docron() { - local cron="cron" perms="-m 0750 -o root -g wheel" + local cron="cron" perms="-m 0750 -o 0 -g 0" if [[ -n $1 ]] ; then case "$1" in @@ -110,7 +110,7 @@ docron() { # Uses same semantics as docron. docrontab() { - local crontab="crontab" perms="-m 4750 -o root -g cron" + local crontab="crontab" perms="-m 4750 -o 0 -g cron" if [[ -n $1 ]] ; then case "$1" in @@ -150,7 +150,7 @@ cron_pkg_postinst() { einfo "To activate /etc/cron.{hourly|daily|weekly|monthly} please run:" einfo " crontab /etc/crontab" einfo - einfo "!!! That will replace root's current crontab !!!" + einfo "!!! That will replace SuperUser's current crontab !!!" einfo fi