Skip to content

Commit

Permalink
anacron: only source /etc/default/anacron if it is readable, fixes cr…
Browse files Browse the repository at this point in the history
  • Loading branch information
sbraz committed Oct 14, 2023
1 parent 1a6bed1 commit 110db44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contrib/0anacron
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ if [ `date +%Y%m%d` = "$day" ]; then
fi

# Check whether run on battery should be allowed
. /etc/default/anacron
if test -r /etc/default/anacron; then
. /etc/default/anacron
fi

if [ "$ANACRON_RUN_ON_BATTERY_POWER" != "yes" ]; then

Expand Down

0 comments on commit 110db44

Please sign in to comment.