Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Be a little bit smart about the permission fix.

  • Loading branch information...
commit f0e6a408547640ba89c5bc7d43b87c3a0b46e1f8 1 parent e64e830
@davidpersson davidpersson authored nateabele committed
Showing with 6 additions and 2 deletions.
  1. +6 −2 app/views/pages/home.html.php
View
8 app/views/pages/home.html.php
@@ -25,12 +25,16 @@
return $notify('success', 'Resources directory is writable.');
}
$path = str_replace(dirname(LITHIUM_APP_PATH) . '/', null, $path);
+ $solution = null;
+ if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
+ $solution = 'To fix this, run the following from the command line: ';
+ $solution .= "<code>$ chmod -R 0777 {$path}</code>.";
+ }
return $notify(
'fail',
'Your resource path is not writeable.',
- "To fix this on *nix and Mac OSX, run the following from the command line:
- <code>$ chmod -R 0777 {$path}</code>"
+ $solution
);
},
'database' => function() use ($notify) {
Please sign in to comment.
Something went wrong with that request. Please try again.