Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

anacron: only source /etc/default/anacron if it is readable, fixes #159 #160

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
anacron: only source /etc/default/anacron if it is readable, fixes #159
Signed-off-by: Louis Sautier <[email protected]>
  • Loading branch information
sbraz committed Oct 14, 2023
commit ca1b98aaa79975376b729d7f4cc2e8bb2e5939b8
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