summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authordarmac <xiaojun2@hisilicon.com>2020-06-29 02:26:04 +0800
committerGitHub <noreply@github.com>2020-06-28 13:26:04 -0500
commit68633fac5c0bb699eca4599175822dba9ebc60e0 (patch)
tree008fe07c8a28ea008a024ce92c497248f7d30f1d /var
parent064618e1eac03b0dcf6f5ac1bf8e338b0c106725 (diff)
downloadspack-68633fac5c0bb699eca4599175822dba9ebc60e0.tar.gz
spack-68633fac5c0bb699eca4599175822dba9ebc60e0.tar.bz2
spack-68633fac5c0bb699eca4599175822dba9ebc60e0.tar.xz
spack-68633fac5c0bb699eca4599175822dba9ebc60e0.zip
redis: add config file from source code (#17225)
* redis: add config file from source code * Update var/spack/repos/builtin/packages/redis/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/redis/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/redis/package.py b/var/spack/repos/builtin/packages/redis/package.py
index fa863bb4b3..d7375066fd 100644
--- a/var/spack/repos/builtin/packages/redis/package.py
+++ b/var/spack/repos/builtin/packages/redis/package.py
@@ -33,3 +33,8 @@ class Redis(MakefilePackage):
'PREFIX={0}'.format(self.spec.prefix),
'install'
]
+
+ @run_after('install')
+ def install_conf(self):
+ mkdirp(self.prefix.conf)
+ install('redis.conf', self.prefix.conf)