# In a config file somewhere:
aliases = /path/to/etc/aliases
list_home = /path/your/mta/can/write/to/lists
- bin_root = /path/to/pmg/bin # like /usr/local/bin
# then
/path/to/pmg/bin/pmg -c /path/to/config/pmg.conf newlist mylist
use File::Slurp qw/read_file write_file/;
use Data::Dumper;
use Try::Tiny;
+use FindBin qw($Bin);
$Data::Dumper::Purity = 1;
use Promulger::Config;
croak "${list_alias} already in $config->{aliases}";
}
push @aliases,
- qq(${list_alias}: "|$config->{bin_root}/pmg msg -c $config->{config_file}"\n);
+ qq(${list_alias}: "|$Bin msg -c $config->{config_file}"\n);
}
$self->store($path->stringify);