Subversion Repositories camp_sysinfo_client_3

Rev

Rev 80 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 80 Rev 81
Line 5... Line 5...
5
 
5
 
6
# uninstall script
6
# uninstall script
7
#
7
#
8
# very basic, just looks in several directories and removes files in them
8
# very basic, just looks in several directories and removes files in them
9
# removed config file also
9
# removed config file also
-
 
10
#
-
 
11
# v0.1.0 RWR
-
 
12
# initial build
10
 
13
 
11
my @dirs = (
14
my @dirs = (
-
 
15
   # common bindirs
12
   '/usr/local/opt/camp/sysinfo-client',
16
   '/usr/local/opt/camp/sysinfo-client',
13
   '/usr/local/etc/camp/sysinfo-client',
-
 
14
   '/opt/camp/sysinfo-client',
17
   '/opt/camp/sysinfo-client',
-
 
18
   # common confdirs
-
 
19
   '/usr/local/etc/camp/sysinfo-client',
15
   '/etc/camp/sysinfo-client'
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'
16
);
25
);
17
 
26
 
18
foreach my $dir ( @dirs ) {
27
foreach my $dir ( @dirs ) {
19
   `rm -fR $dir` if -d $dir;
28
   `rm -fR $dir` if -d $dir;
20
}
29
}