Browse Source

sendmail: fixed setmailer.sh to use an absolute path within the generated sendmail wrapper script

Note:

Without this sendmail will spit out following warning:
--------------------------------------------------------------------------
sendmail[11340]: daemon invoked without full pathname; kill -1 won't work
--------------------------------------------------------------------------
user/amery/next/luajit
Christian Wiese 13 years ago committed by Christian Wiese
parent
commit
009b07f082
  1. 4
      mail/sendmail/setmailer.sh

4
mail/sendmail/setmailer.sh

@ -3,7 +3,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# #
# Filename: package/.../sendmail/setmailer.sh # Filename: package/.../sendmail/setmailer.sh
# Copyright (C) 2007 The OpenSDE Project # Copyright (C) 2007 - 2011 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project
# #
# More information can be found in the files COPYING and README. # More information can be found in the files COPYING and README.
@ -17,7 +17,7 @@
prefix=$( cd ${0%/*}/..; pwd -P ) prefix=$( cd ${0%/*}/..; pwd -P )
for x in sendmail mailq newaliases; do for x in sendmail mailq newaliases; do
echo "$0: Re-creating /usr/bin/$x -> ${x}_@mailer@ ..." echo "$0: Re-creating /usr/bin/$x -> ${x}_@mailer@ ..."
echo -e "#!/bin/sh\nexec -a $x ${x}_@mailer@ \"\$@\"" > $prefix/bin/$x echo -e "#!/bin/sh\nexec -a $prefix/sbin/$x ${x}_@mailer@ \"\$@\"" > $prefix/bin/$x
chmod +x $prefix/bin/$x chmod +x $prefix/bin/$x
done done

Loading…
Cancel
Save