Move where umask is used.
This commit is contained in:
parent
ccbfd96242
commit
578eb90e69
1 changed files with 3 additions and 3 deletions
|
|
@ -26,6 +26,9 @@ notify() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Logs are only for root.
|
||||||
|
umask 027
|
||||||
|
|
||||||
# Only run for the configured mirroring user.
|
# Only run for the configured mirroring user.
|
||||||
[[ "$(whoami)" != "$MIRRORING_USER" ]] && {
|
[[ "$(whoami)" != "$MIRRORING_USER" ]] && {
|
||||||
printf "%s: %s\\n" "${0##*/}" "must be run by the '$MIRRORING_USER' user - use su to run manually" >&2
|
printf "%s: %s\\n" "${0##*/}" "must be run by the '$MIRRORING_USER' user - use su to run manually" >&2
|
||||||
|
|
@ -60,9 +63,6 @@ if [[ "$FLOCK" != "$0" ]]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Logs are only for root.
|
|
||||||
umask 027
|
|
||||||
|
|
||||||
# Drop the caches as sometimes old user/groups are cached.
|
# Drop the caches as sometimes old user/groups are cached.
|
||||||
sudo /opt/sbin/drop-caches
|
sudo /opt/sbin/drop-caches
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue