K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / etc / cron.weekly /
server ip : 104.21.89.46

your ip : 172.69.17.176

H O M E


Filename/etc/cron.weekly/apt-xapian-index
Size730
Permissionrwxr-xr-x
Ownerroot : root
Create time27-Apr-2025 09:53
Last modified23-Feb-2014 22:30
Last accessed29-Jun-2025 07:47
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
#!/bin/sh

CMD=/usr/sbin/update-apt-xapian-index

# ionice should not be called in a virtual environment
# (similar to man-db cronjobs)
egrep -q '(envID|VxID):.*[1-9]' /proc/self/status || IONICE=/usr/bin/ionice

# Check if we're on battery
if which on_ac_power >/dev/null 2>&1; then
on_ac_power >/dev/null 2>&1
ON_BATTERY=$?

# Here we use "-eq 1" instead of "-ne 0" because
# on_ac_power could also return 255, which means
# it can't tell whether we are on AC or not. In
# that case, run update-a-x-i nevertheless.
[ "$ON_BATTERY" -eq 1 ] && exit 0
fi

# Rebuild the index
if [ -x "$CMD" ]
then
if [ -x "$IONICE" ]
then
nice -n 19 $IONICE -c 3 $CMD --quiet
else
nice -n 19 $CMD --quiet
fi
fi