Subversion Repositories camp_sysinfo_client_3

Rev

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

Rev 11 Rev 12
Line 12... Line 12...
12
   `cp -av $dir/* /opt/camp/sysinfo/$dir/`;
12
   `cp -av $dir/* /opt/camp/sysinfo/$dir/`;
13
   `chmod 0700 /opt/camp/sysinfo/$dir/*` if $dir eq 'scripts';
13
   `chmod 0700 /opt/camp/sysinfo/$dir/*` if $dir eq 'scripts';
14
   `chown root:root /opt/camp/sysinfo/$dir/*`;
14
   `chown root:root /opt/camp/sysinfo/$dir/*`;
15
}
15
}
16
 
16
 
17
for $file ( 'sysinfo-client','notes', 'sysinfo-client.conf.template' ) {
17
for $file ( 'sysinfo-client','notes', 'sysinfo-client.conf.template','configure.pl' ) {
18
   `cp $file /opt/camp/sysinfo/`;
18
   `cp $file /opt/camp/sysinfo/`;
19
   `chmod 0700 /opt/camp/sysinfo/$file`;
19
   `chmod 0600 /opt/camp/sysinfo/$file`;
20
   `chown root:root /opt/camp/sysinfo/$file`;
20
   `chown root:root /opt/camp/sysinfo/$file`;
21
}
21
}
22
 
22
 
23
# Create a link into /usr/local/bin
23
# Create a link into /usr/local/bin
24
`chmod 755 /opt/camp/sysinfo/sysinfo-client`;
24
`chmod 0700 /opt/camp/sysinfo/sysinfo-client`;
-
 
25
`chmod 0700 /opt/camp/sysinfo/configure.pl`;
25
`ln -s /opt/camp/sysinfo/sysinfo-client /usr/local/bin/sysinfo-client`;
26
`ln -s /opt/camp/sysinfo/sysinfo-client /usr/local/bin/sysinfo-client`;
26
 
27
 
27
`configure.pl`;
28
`configure.pl`;
28
 
29
 
29
1;
30
1;