Subversion Repositories camp_sysinfo_client_3

Rev

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

Rev 21 Rev 23
Line 12... Line 12...
12
      && &yesno ('It looks like sysinfo version 2 is installed via apt, should I remove it' ) ) {
12
      && &yesno ('It looks like sysinfo version 2 is installed via apt, should I remove it' ) ) {
13
      if ( &yesno( 'Back up old configuration? ') ) {
13
      if ( &yesno( 'Back up old configuration? ') ) {
14
         `tar -czvf /root/sysinfo.2.config.tgz /etc/sysinfo`;
14
         `tar -czvf /root/sysinfo.2.config.tgz /etc/sysinfo`;
15
         print "Old configuration copied to /root/sysinfo.2.config.tgz\n";
15
         print "Old configuration copied to /root/sysinfo.2.config.tgz\n";
16
      }
16
      }
17
      `apt-get -y --purge remove sysinfo-client`;
17
      system 'apt-get -y --purge remove sysinfo-client';
18
      print "There may be some unused packages now. You can remove them with\napt-get autoremove\n\n";
18
      print "There may be some unused packages now. You can remove them with\napt-get autoremove\n\n";
19
   }
19
   }
20
   if ( &yesno( 'Would you like a link to /usr/local/bin/sysinfo-client' ) ) {
20
   if ( &yesno( 'Would you like a link to /usr/local/bin/sysinfo-client' ) ) {
21
      `rm /usr/local/bin/sysinfo-client` if -e '/usr/local/bin/sysinfo-client';
21
      `rm /usr/local/bin/sysinfo-client` if -e '/usr/local/bin/sysinfo-client';
22
      `ln -s  /opt/camp/sysinfo/sysinfo-client /usr/local/bin/sysinfo-client`;
22
      `ln -s  /opt/camp/sysinfo/sysinfo-client /usr/local/bin/sysinfo-client`;