Subversion Repositories camp_sysinfo_client_3

Rev

Rev 10 | Rev 12 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

#! /usr/bin/perl -w

# an extremely basic installer for sysinfo-client

for $dir ( '/opt/camp/sysinfo', '/opt/camp/sysinfo/modules', '/opt/camp/sysinfo/scripts', '/etc/camp', '/etc/camp/usermodules' ) {
   `mkdir -p $dir`;
   `chmod 0700 $dir`;
   `chown root:root $dir`;
}

for $dir ( 'modules', 'scripts' ) {
   `cp -av $dir/* /opt/camp/sysinfo/$dir/`;
   `chmod 0700 /opt/camp/sysinfo/$dir/*` if $dir eq 'scripts';
   `chown root:root /opt/camp/sysinfo/$dir/*`;
}

for $file ( 'sysinfo-client','notes', 'sysinfo-client.conf.template' ) {
   `cp $file /opt/camp/sysinfo/`;
   `chmod 0700 /opt/camp/sysinfo/$file`;
   `chown root:root /opt/camp/sysinfo/$file`;
}

# Create a link into /usr/local/bin
`chmod 755 /opt/camp/sysinfo/sysinfo-client`;
`ln -s /opt/camp/sysinfo/sysinfo-client /usr/local/bin/sysinfo-client`;

`configure.pl`;

1;