Subversion Repositories camp_sysinfo_client_3

Rev

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

Rev 16 Rev 18
Line 43... Line 43...
43
   my $removeConfig = &yesno( "Do you want me to remove the configuration also?" );
43
   my $removeConfig = &yesno( "Do you want me to remove the configuration also?" );
44
   print "Uninstalling ";
44
   print "Uninstalling ";
45
   print "and removing config" if $removeConfig;
45
   print "and removing config" if $removeConfig;
46
   `rm -fRv $targetDir`;
46
   `rm -fRv $targetDir`;
47
   `rm -fRv $confDir` if $removeConfig;
47
   `rm -fRv $confDir` if $removeConfig;
48
   `rm /etc/fcron.daily/sysinfo.cron` if -e '/etc/fcron.daily/sysinfo.cron';
48
   unlink(  '/etc/fcron.daily/sysinfo.cron',
49
   `rm /etc/cron.daily/sysinfo` if -e '/etc/cron.daily/sysinfo';
49
            '/etc/cron.daily/sysinfo',
50
   `rm /usr/local/bin/sysinfo-client` if -e '/usr/local/bin/sysinfo-client';
50
            '/usr/local/bin/sysinfo-client' 
-
 
51
          );
51
   print "Standard sysinfo-client removed\n";
52
   print "\nStandard sysinfo-client removed\n";
52
} else {
53
} else {
53
   print "Uninstalled aborted\n"
54
   print "Uninstalled aborted\n"
54
}
55
}
55
 
56
 
56
exit 1;
57
exit 1;