52 lines
799 B
Bash
Executable File
52 lines
799 B
Bash
Executable File
#!/bin/sh
|
|
|
|
##
|
|
## This script installs the digital hunter killer drone.
|
|
## The scripts will be installed to /var/root/robot-process-killer/
|
|
## The scripts will be automated via cron job configuration
|
|
##
|
|
## Questions or issues? Email me here:
|
|
##
|
|
## the.software.shinobi@gmail.com
|
|
##
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
##
|
|
|
|
mkdir -p /var/root/robot-process-killer/
|
|
|
|
ls -lha /var/root/robot-process-killer/
|
|
|
|
##
|
|
|
|
cp -r robot/* /var/root/robot-process-killer/
|
|
|
|
ls -lha /var/root/robot-process-killer/
|
|
|
|
##
|
|
|
|
cd /var/root/robot-process-killer/
|
|
|
|
chmod +x *.bash
|
|
|
|
ls -lha
|
|
|
|
##
|
|
|
|
echo "* 19 * * * /var/root/robot-process-killer/robot-kill-target-system-processes.sh" >> robotcron
|
|
|
|
echo "printing crontab"
|
|
|
|
cat robotcron
|
|
|
|
crontab -u root robotcron
|
|
|
|
##
|
|
|
|
echo
|
|
echo "finished installing robot and configuring cron".
|
|
echo
|