Remove empty - checking to find actual and overwrite any existing

This commit is contained in:
steve-lad 2021-06-27 10:43:01 +02:00
parent bab83c7e3e
commit d8cc6f3ba1
No known key found for this signature in database
GPG key ID: 4D1D760BACDAFF81

View file

@ -896,7 +896,7 @@ function checkTftpServer() {
// write a couple of sentinels to different distro tftp locations in the filesystem
foreach ($possibleFtpDirs as $dirToTest) {
if (is_dir($dirToTest) && is_writable($dirToTest) && empty($tftpRootPath)) {
if (is_dir($dirToTest) && is_writable($dirToTest)) {
$tempFile = "${dirToTest}/{$remoteFileName}";
file_put_contents($tempFile, $remoteFileContent);