Subversion Repositories camp_sysinfo_client_3

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
78 rodolico 1
#! /usr/bin/env perl
2
 
3
use strict;
4
use warnings;
5
 
6
# uninstall script
7
#
8
# very basic, just looks in several directories and removes files in them
9
# removed config file also
81 rodolico 10
#
11
# v0.1.0 RWR
12
# initial build
78 rodolico 13
 
14
my @dirs = (
81 rodolico 15
   # common bindirs
78 rodolico 16
   '/usr/local/opt/camp/sysinfo-client',
81 rodolico 17
   '/opt/camp/sysinfo-client',
18
   # common confdirs
78 rodolico 19
   '/usr/local/etc/camp/sysinfo-client',
81 rodolico 20
   '/etc/camp/sysinfo-client',
21
   # crontab entries
22
   '/etc/cron.daily/sysinfo-client',
23
   '/etc/fcron.daily/sysinfo-client.fcron',
24
   '/etc/periodic/daily/sysinfo-client'
78 rodolico 25
);
26
 
79 rodolico 27
foreach my $dir ( @dirs ) {
78 rodolico 28
   `rm -fR $dir` if -d $dir;
29
}
30
 
31
1;