Rev 80 | Blame | Last modification | View Log | Download | RSS feed
#! /usr/bin/env perl
use strict;
use warnings;
# uninstall script
#
# very basic, just looks in several directories and removes files in them
# removed config file also
#
# v0.1.0 RWR
# initial build
my @dirs = (
# common bindirs
'/usr/local/opt/camp/sysinfo-client',
'/opt/camp/sysinfo-client',
# common confdirs
'/usr/local/etc/camp/sysinfo-client',
'/etc/camp/sysinfo-client',
# crontab entries
'/etc/cron.daily/sysinfo-client',
'/etc/fcron.daily/sysinfo-client.fcron',
'/etc/periodic/daily/sysinfo-client'
);
foreach my $dir ( @dirs ) {
`rm -fR $dir` if -d $dir;
}
1;