diff --git a/src/borgwrapper.sh b/src/borgwrapper.sh index 89718cd..e2e9f8f 100755 --- a/src/borgwrapper.sh +++ b/src/borgwrapper.sh @@ -207,7 +207,7 @@ LOCKDIR="/run/lock/borgwrapper" STATUSDIR="/var/lib/borgwrapper/status" BWLIMIT=0 USE_NICE=true -NICE="/usr/bin/nice" +NICE="$(command -v nice)" while getopts ":c:dV" OPT; do case ${OPT} in diff --git a/src/config.sh.example b/src/config.sh.example index 396851e..a4e493d 100644 --- a/src/config.sh.example +++ b/src/config.sh.example @@ -29,7 +29,6 @@ KEEP_YEARLY=5 # Use nice to reduce system performance impact from backups. Set to false to disable. #USE_NICE=true -#NICE="/usr/bin/nice" # Location of borgwrapper lock files #LOCKDIR="/run/lock/borgwrapper"