diff --git a/upgrade.php b/upgrade.php index 06d01e7ea8..47edadeae1 100644 --- a/upgrade.php +++ b/upgrade.php @@ -187,29 +187,6 @@ $up = shell_exec('php artisan up'); echo '-- '.$up."\n\n"; -echo "--------------------------------------------------------\n"; -echo "Step 11: Checking for v5 public storage directories: \n"; -echo "--------------------------------------------------------\n\n"; - - -if ((!file_exists('storage/app/public')) && (!is_dir('storage/app/public'))) { - echo "- No public directory found in storage/app - creating one.\n\n"; - if (!mkdir('storage/app/public', 0777, true)) { - echo "ERROR: Failed to create directory at storage/app/public. You should do this manually.\n\n"; - } - $storage_simlink = shell_exec('php artisan storage:link'); - echo $storage_simlink; - -} else { - echo "- Public storage directory already exists. Skipping...\n\n"; -} - -echo "- Copying files into storage/app/public.\n\n"; -if (rmove('public/uploads','storage/app/public')) { - echo "- Copy successful.\n\n"; -} else { - echo "- Copy failed - you should do this manually by copying the files from public/uploads into the storage/app/public directory.\n\n"; -} echo "--------------------------------------------------------\n"; echo "FINISHED! Clear your browser cookies and re-login to use :\n";