Support pip3 and run on guest-agent service for redis
This patch will solve some following items: - Support python3/ pip3 - Permit redis is running with guest-agent service Tested with standalone, replicate and cluster successfully. Change-Id: I81b72fae1c31ce2995232b52460d0ad0d6f894be
This commit is contained in:
parent
0538208568
commit
d5549f30cf
|
@ -113,4 +113,4 @@ ULIMIT=65536
|
|||
_EOF_
|
||||
|
||||
# Install Python driver for Redis ('redis-py').
|
||||
pip2 install redis
|
||||
pip3 install redis
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
# PURPOSE: Install redis required package in guest-agent-venv
|
||||
|
||||
set -ex
|
||||
|
||||
if [ $GUEST_VENV ]
|
||||
then
|
||||
# Install Python driver for Redis ('redis-py').
|
||||
$GUEST_VENV/bin/pip3 install redis
|
||||
fi
|
Loading…
Reference in New Issue