possible fix for tomav#1383

This commit is contained in:
Georg Lauterbach 2020-09-28 11:42:50 +02:00
parent 85d670bba0
commit 1d18cb81fb
No known key found for this signature in database
GPG key ID: 386D76E7AD496709
2 changed files with 10 additions and 5 deletions

0
config/user-patches.sh.dist Normal file → Executable file
View file

View file

@ -1757,13 +1757,18 @@ function _setup_logwatch()
function _setup_user_patches()
{
_notify 'inf' 'Executing user-patches.sh'
if [[ -f /tmp/docker-mailserver/user-patches.sh ]]
then
chmod +x /tmp/docker-mailserver/user-patches.sh
/tmp/docker-mailserver/user-patches.sh
_notify 'inf' "Executed 'config/user-patches.sh'"
_notify 'inf' 'Executing user-patches.sh'
chmod +x /tmp/docker-mailserver/user-patches.sh &>/dev/null || true
if [[ -x /tmp/docker-mailserver/user-patches.sh ]]
then
/tmp/docker-mailserver/user-patches.sh
_notify 'inf' "Executed 'config/user-patches.sh'"
else
_notify 'err' "Could not execute user-patches.sh. Not executable!"
fi
else
_notify 'inf' "No user patches executed because optional '/tmp/docker-mailserver/user-patches.sh' is not provided."
fi