]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
also check for write permission to background folder
authorBrenda Wallace <shiny@cpan.org>
Fri, 26 Jun 2009 10:42:52 +0000 (22:42 +1200)
committerBrenda Wallace <shiny@cpan.org>
Fri, 26 Jun 2009 10:42:52 +0000 (22:42 +1200)
install.php

index b94a9293607e7928659c4da53e09323283d61f5b..570b08edf473b13e709ece605656a279d89016de 100644 (file)
@@ -72,6 +72,12 @@ function checkPrereqs()
          <?
             $pass = false;
        }
+       if (!is_writable(INSTALLDIR.'/background/')) {
+         ?><p class="error">Cannot write background directory: <code><?php echo INSTALLDIR; ?>/background/</code></p>
+              <p>On your server, try this command: <code>chmod a+w <?php echo INSTALLDIR; ?>/background/</code></p>
+         <?
+            $pass = false;
+       }
 
        return $pass;
 }