diff options
| author | Lukasz Kasprzak <lukasz.kasprzak@pm.me> | 2026-04-14 22:32:43 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukasz.kasprzak@pm.me> | 2026-04-14 22:32:43 +0200 |
| commit | 83f7fe4b8402bab171d110703a1b1115efbc9b28 (patch) | |
| tree | 19110702c7d740f6bd8ee4f5d2ebcb97442be237 /straper/db/public/cron/cron.daily/plocate | |
| parent | 51d43498b07dc97d795947964534f0903cd05db5 (diff) | |
| download | bin-83f7fe4b8402bab171d110703a1b1115efbc9b28.tar.gz bin-83f7fe4b8402bab171d110703a1b1115efbc9b28.zip | |
cleaned up many scrits and deleted some that were of no use; renamed a lot
Diffstat (limited to 'straper/db/public/cron/cron.daily/plocate')
| -rwxr-xr-x | straper/db/public/cron/cron.daily/plocate | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/straper/db/public/cron/cron.daily/plocate b/straper/db/public/cron/cron.daily/plocate deleted file mode 100755 index e3b6c42..0000000 --- a/straper/db/public/cron/cron.daily/plocate +++ /dev/null @@ -1,35 +0,0 @@ -#! /bin/sh - -set -e - -UPDATEDB=/usr/sbin/updatedb.plocate - -# Skip if systemd timer is available. -if [ -d /run/systemd/system ]; then - exit 0 -fi - -[ -x $UPDATEDB ] || exit 0 - -if which on_ac_power >/dev/null 2>&1; then - ON_BATTERY=0 - on_ac_power >/dev/null 2>&1 || ON_BATTERY=$? - if [ "$ON_BATTERY" -eq 1 ]; then - exit 0 - fi -fi - -# See ionice(1). -IONICE= -if [ -x /usr/bin/ionice ] && - /usr/bin/ionice -c3 true 2>/dev/null; then - IONICE="/usr/bin/ionice -c3" -fi - -# See nocache(1). -NOCACHE= -if [ -x /usr/bin/nocache ]; then - NOCACHE="/usr/bin/nocache" -fi - -flock --nonblock /run/plocate.daily.lock $NOCACHE $IONICE nice $UPDATEDB |
