mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-10 09:24:50 +02:00
scripts: housekeeping & cleanup setup (1/2) (#3121)
This commit is contained in:
parent
f35b60042f
commit
4b04c3e31c
11 changed files with 233 additions and 262 deletions
|
@ -111,3 +111,11 @@ function _setup_timezone
|
|||
return 1
|
||||
fi
|
||||
}
|
||||
function _setup_apply_fixes_after_configuration
|
||||
{
|
||||
_log 'trace' 'Removing leftover PID files from a stop/start'
|
||||
find /var/run/ -not -name 'supervisord.pid' -name '*.pid' -delete
|
||||
touch /dev/shm/supervisor.sock
|
||||
_log 'debug' 'Checking /var/mail permissions'
|
||||
_chown_var_mail_if_necessary || _shutdown 'Failed to fix /var/mail permissions'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue