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>
This commit is contained in:
darmac 2020-06-29 02:26:04 +08:00 committed by GitHub
parent 064618e1ea
commit 68633fac5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,3 +33,8 @@ def install_targets(self):
'PREFIX={0}'.format(self.spec.prefix), 'PREFIX={0}'.format(self.spec.prefix),
'install' 'install'
] ]
@run_after('install')
def install_conf(self):
mkdirp(self.prefix.conf)
install('redis.conf', self.prefix.conf)