One Hat Cyber Team
Your IP :
216.73.216.58
Server IP :
50.6.197.111
Server :
Linux server-631610.officedataghana.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
Server Software :
Apache
PHP Version :
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
bin
/
View File Name :
libcare-cron
#!/usr/bin/bash # vi:syntax=sh set -eo pipefail progname=$(basename "$0") sub_help(){ echo "Usage: $progname <subcommand> [options]" echo "" echo "Subcommands:" echo " init" echo " disable" echo "" echo "For help with each subcommand run:" echo "$progname <subcommand> -h|--help" echo "" } LIBCARE_CRONFILE=/etc/cron.d/libcare-cron subcommand=$1 sub_disable(){ if [[ -e ${LIBCARE_CRONFILE} && -s ${LIBCARE_CRONFILE} ]]; then rm ${LIBCARE_CRONFILE} fi } sub_init(){ if ! [[ -e ${LIBCARE_CRONFILE} && -s ${LIBCARE_CRONFILE} ]]; then echo "$(( RANDOM % 60 )) */4 * * * root /usr/bin/kcarectl -q --lib-auto-update" > ${LIBCARE_CRONFILE} fi } case $subcommand in "" | "-h" | "--help") sub_help ;; *) shift "sub_${subcommand}" "$@" if [ $? = 127 ]; then echo "Error: '$subcommand' is not a known subcommand." >&2 echo " Run '$progname --help' for a list of known subcommands." >&2 exit 1 fi ;; esac echo "Done."