chiark / gitweb /
serialmgr: Look for things in /usr, not /usr/local
[sympathy.git] / serialmgr / serialmgrd
index 6a839adeaa3653ec34a644bef9c65d86db2ee565..e3c260afe33795def8601fd61b615d3ded014aa0 100755 (executable)
@@ -12,8 +12,8 @@ my $stuff = [];
 my $hosts = [];
 my $hup   = 0;
 
-my $consolidate_exe = "/usr/local/bin/consolidate";
-my $sympathy_exe    = "/usr/local/bin/sympathy";
+my $consolidate_exe = "/usr/bin/consolidate";
+my $sympathy_exe    = "/usr/bin/sympathy";
 
 my @keys = qw(host portcode baud task user password name options);
 
@@ -56,7 +56,7 @@ sub read_file() {
         next if ( $_ =~ /^#/ );
 
         chomp;
-        split(':');
+        @_ = split(':');
         $c = 0;
         push @$lines, { map { $keys[ $c++ ] => $_ } @_ };
     }
@@ -76,10 +76,10 @@ sub check_users($) {
     for my $l (@$c) {
         my $shell;
         if ( $l->{task} eq "sympathy" ) {
-            $shell = "/usr/local/bin/run_sympathy";
+            $shell = "/usr/bin/run_sympathy";
         }
         else {
-            $shell = "/usr/local/bin/run_conclient";
+            $shell = "/usr/bin/run_conclient";
         }
         if ( not defined getpwnam( $l->{user} ) ) {
             syslog( LOG_ERR, "creating an account for user " . $l->{user} );