mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
possible fix for tomav#1383
This commit is contained in:
parent
85d670bba0
commit
1d18cb81fb
0
config/user-patches.sh.dist
Normal file → Executable file
0
config/user-patches.sh.dist
Normal file → Executable 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
|
||||
_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
|
||||
|
|
Loading…
Reference in a new issue