Skip to content

Commit

Permalink
Merge pull request jimsalterjrs#399 from phreaker0/path2
Browse files Browse the repository at this point in the history
don't use hardcoded paths
  • Loading branch information
jimsalterjrs authored Nov 1, 2020
2 parents 2de0579 + 987dcc4 commit 6041f09
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sanoid
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ if (keys %args < 2) {
$args{'verbose'} = 1;
}

my $pscmd = '/bin/ps';
# for compatibility reasons, older versions used hardcoded command paths
$ENV{'PATH'} = $ENV{'PATH'} . ":/bin:/sbin";

my $zfs = '/sbin/zfs';
my $zpool = '/sbin/zpool';
my $pscmd = 'ps';

my $zfs = 'zfs';
my $zpool = 'zpool';

my $conf_file = "$args{'configdir'}/sanoid.conf";
my $default_conf_file = "$args{'configdir'}/sanoid.defaults.conf";
Expand Down

0 comments on commit 6041f09

Please sign in to comment.