From 48d17cb1f266308f91f653bbfb50e1f1f5e8a7da Mon Sep 17 00:00:00 2001 From: "fox.cpp" Date: Fri, 6 Sep 2019 21:34:51 +0300 Subject: [PATCH] Change default libexecdir value Most distros use /usr/lib/programname instead of /usr/libexec/programname. --- directories.go | 2 +- maddy.conf.5.scd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/directories.go b/directories.go index bb79a0f..ed93520 100644 --- a/directories.go +++ b/directories.go @@ -7,7 +7,7 @@ import ( var ( defaultConfigDirectory = "/etc/maddy" defaultStateDirectory = "/var/lib/maddy" - defaultLibexecDirectory = "/usr/libexec/maddy" + defaultLibexecDirectory = "/usr/lib/maddy" ) func ConfigDirectory() string { diff --git a/maddy.conf.5.scd b/maddy.conf.5.scd index ab4e01c..6904544 100644 --- a/maddy.conf.5.scd +++ b/maddy.conf.5.scd @@ -309,7 +309,7 @@ go build --ldflags '-X github.com/foxcpp/maddy.defaultStateDirectory=/opt/maddy/ ## libexecdir Change the directory where all auxiliary binaries are stored. -Default is $MADDYLIBEXEC environment variable or `/usr/libexec/maddy` if +Default is $MADDYLIBEXEC environment variable or `/usr/lib/maddy` if $MADDYLIBEXEC is not set. The default value can be changed using -X linker flag during compilation: