mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
owncloud: make .htaccess available
This commit is contained in:
parent
7494bd389e
commit
3ed3977166
@ -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 = [
|
||||||
|
@ -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);' \
|
||||||
|
Loading…
Reference in New Issue
Block a user