Commit 8fb416e9 authored by Nigel Kukard's avatar Nigel Kukard

Removed install section

parent 0387162a
......@@ -42,54 +42,6 @@ case ${0##*/} in
echo "ERROR: You need to specify - $0 <period> --verbose."
exit 1
;;
install)
if [ -e /root/bin/backstep-traceback.pl ]
then
mv --verbose /root/bin/backstep-traceback.pl /usr/local/sbin/backstep-traceback
elif [ ! -e /usr/local/sbin/backstep-traceback ]
then
cd /usr/local/sbin/
wget https://gitlab.devlabs.linuxassist.net/awit-backstep-traceback/awit-backstep-traceback/raw/master/backstep-traceback.pl -O backstep-traceback
chmod +x backstep-traceback
fi
if [ ! -e /.backup-filter ]
then
wget https://gitlab.devlabs.linuxassist.net/awit-backstep-traceback/awit-backstep-traceback/raw/master/example/backup-filter.awit -O /.backup-filter
chmod 0600 /.backup-filter
fi
if [ ! -d /etc/backstep-traceback ]
then
mkdir --verbose /etc/backstep-traceback
fi
cd /root/bin/
if [ -f /root/bin/backup-daily ]
then
mv backup-daily daily.conf
echo "Move /root/bin/daily.conf to /etc/backstep-traceback/ after editing out code sections."
fi
if [ ! -h /root/bin/backup-daily ]
then
ln --symbolic backstep-traceback-auto backup-daily
fi
if [ -f /root/bin/backup-weekly ]
then
mv backup-weekly weekly.conf
echo "Move /root/bin/weekly.conf to /etc/backstep-traceback/ after editing out code sections."
fi
if [ ! -h /root/bin/backup-weekly ]
then
ln --symbolic backstep-traceback-auto backup-weekly
fi
exit 0
;;
*)
echo "ERROR: $1 is not a valid option."
exit 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment