/[cvs]/nfo/perl/scripts/dispatchmail/bin/install
ViewVC logotype

Annotation of /nfo/perl/scripts/dispatchmail/bin/install

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Wed Jan 22 17:53:55 2003 UTC (21 years, 5 months ago) by root
Branch: MAIN
CVS Tags: HEAD
+ initial check-in

1 root 1.1 #!/usr/bin/perl
2    
3     use strict;
4     use warnings;
5    
6     use Cwd;
7    
8     use lib qw( /data/libs/nfo/perl/libs );
9     use org::netfrag::shortcuts qw( run_cmd );
10    
11     my $dispatchmail = 'dispatchmail';
12     my $path_current = cwd();
13     my $bin_dispatchmail = $path_current . '/' . $dispatchmail;
14     my $path_smrsh = '/etc/mail/smrsh';
15    
16     chdir $path_smrsh;
17     unlink $dispatchmail;
18     run_cmd 'ln -s ' . $bin_dispatchmail . ' .';
19    
20     chdir '/usr/local/bin';
21     unlink $dispatchmail;
22     run_cmd 'ln -s ' . $bin_dispatchmail . ' .';
23    
24     1;

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed