Check whether configured directory is writable as it might be subject to
open_basedir restrictions.
Fixes#13482
Signed-off-by: Michal Čihař <michal@cihar.com>
It is really not necessary as MySQL decides connection type rather based
on hostname than on anything else.
Signed-off-by: Michal Čihař <michal@cihar.com>
This removes risk of third party manipulating with the configuration as
there was race condition between editing and using the file.
Downloading the file should not be big hassle and this really makes the
whole setup a bit simpler.
Signed-off-by: Michal Čihař <michal@cihar.com>
In setup, try to follow what the docs say.
'Password login is still tried first, but as fallback, no password method is tried.'
Fix#12472
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Do it just once and very early, so that all scripts can rely on it being
available.
Fixes autoloading of phpseclib.
Fixes#11914
Signed-off-by: Michal Čihař <michal@cihar.com>