Do not remove .htaccess during auto-update sync
This commit is contained in:
parent
a0d262dc9d
commit
675001ed6f
@ -59,6 +59,8 @@ function synchronize($source_directory, $destination_directory)
|
|||||||
|
|
||||||
foreach ($remove_files as $file) {
|
foreach ($remove_files as $file) {
|
||||||
|
|
||||||
|
if ($file !== '.htaccess') {
|
||||||
|
|
||||||
$destination_file = $destination_directory.DIRECTORY_SEPARATOR.$file;
|
$destination_file = $destination_directory.DIRECTORY_SEPARATOR.$file;
|
||||||
\Model\Config\debug('[REMOVE] '.$destination_file);
|
\Model\Config\debug('[REMOVE] '.$destination_file);
|
||||||
|
|
||||||
@ -66,6 +68,7 @@ function synchronize($source_directory, $destination_directory)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Overwrite all files
|
// Overwrite all files
|
||||||
foreach ($src_files as $file) {
|
foreach ($src_files as $file) {
|
||||||
|
Loading…
Reference in New Issue
Block a user