owncloud: make .htaccess available

This commit is contained in:
Matej Cotman 2015-01-21 22:47:28 +01:00
parent 7494bd389e
commit 3ed3977166
2 changed files with 5 additions and 1 deletions

View File

@ -352,6 +352,10 @@ rec {
RewriteEngine On RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
<Directory ${pkgs.owncloud}>
${builtins.readFile "${pkgs.owncloud}/.htaccess"}
</Directory>
''; '';
globalEnvVars = [ globalEnvVars = [

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
installPhase = installPhase =
'' ''
mkdir -p $out mkdir -p $out
cp -r * $out find . -maxdepth 1 -execdir cp -r '{}' $out \;
substituteInPlace $out/lib/base.php \ substituteInPlace $out/lib/base.php \
--replace 'OC_Config::$object = new \OC\Config(self::$configDir);' \ --replace 'OC_Config::$object = new \OC\Config(self::$configDir);' \