From c30c41a79b145ae44aed7067f1d1def22e784eae Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 22 Jan 2023 10:20:13 +0100 Subject: [PATCH] Nextcloud _htaccess to .htaccess failed --- .../snappymail/lib/Migration/InstallStep.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/integrations/nextcloud/snappymail/lib/Migration/InstallStep.php b/integrations/nextcloud/snappymail/lib/Migration/InstallStep.php index c035f63a0..48cc28b38 100644 --- a/integrations/nextcloud/snappymail/lib/Migration/InstallStep.php +++ b/integrations/nextcloud/snappymail/lib/Migration/InstallStep.php @@ -37,12 +37,12 @@ class InstallStep implements IRepairStep // https://github.com/the-djmaze/snappymail/issues/790#issuecomment-1366527884 if (!file_exists($app_dir . '/.htaccess') && file_exists($app_dir . '/_htaccess')) { rename($app_dir . '/_htaccess', $app_dir . '/.htaccess'); - if (!file_exists(APP_VERSION_ROOT_PATH . '/app/.htaccess') && file_exists(APP_VERSION_ROOT_PATH . '/app/_htaccess')) { - rename(APP_VERSION_ROOT_PATH . '/app/_htaccess', APP_VERSION_ROOT_PATH . '/app/.htaccess'); - } - if (!file_exists(APP_VERSION_ROOT_PATH . '/static/.htaccess') && file_exists(APP_VERSION_ROOT_PATH . '/static/_htaccess')) { - rename(APP_VERSION_ROOT_PATH . '/static/_htaccess', APP_VERSION_ROOT_PATH . '/static/.htaccess'); - } + } + if (!file_exists(APP_VERSION_ROOT_PATH . 'app/.htaccess') && file_exists(APP_VERSION_ROOT_PATH . 'app/_htaccess')) { + rename(APP_VERSION_ROOT_PATH . 'app/_htaccess', APP_VERSION_ROOT_PATH . 'app/.htaccess'); + } + if (!file_exists(APP_VERSION_ROOT_PATH . 'static/.htaccess') && file_exists(APP_VERSION_ROOT_PATH . 'static/_htaccess')) { + rename(APP_VERSION_ROOT_PATH . 'static/_htaccess', APP_VERSION_ROOT_PATH . 'static/.htaccess'); } $oConfig = \RainLoop\Api::Config();