summaryrefslogtreecommitdiffstats
path: root/packer
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-08-10 09:51:08 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-08-10 09:51:34 -0700
commit4d62efab1a84ce22475f0ba934cf958980f555e9 (patch)
treeba599712496c678606c0b19d56708aff2482efd8 /packer
parent130296adbfcc8ad679c8f57281a20b251de2b065 (diff)
Fix redis install script
Change-Id: I373ed9f55924b2414ba6bc3c5620fdc97f719a4f Issue-id: CIMAN-14 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'packer')
-rw-r--r--packer/provision/redis.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/packer/provision/redis.sh b/packer/provision/redis.sh
index 11e2177a1..fc8b2a0f4 100644
--- a/packer/provision/redis.sh
+++ b/packer/provision/redis.sh
@@ -24,9 +24,9 @@ ubuntu_systems() {
make install
# 2. set conf file and init script
- mv /tmp/redis-4.0.1/redis-server /etc/init.d/redis-server
+ cp /tmp/redis-4.0.1/src/redis-server /etc/init.d/redis-server
chmod +x /etc/init.d/redis-server
- mv /tmp/redis-4.0.1/redis.conf /etc/redis.conf
+ cp /tmp/redis-4.0.1/redis.conf /etc/redis.conf
# 3. set auto start when start system
update-rc.d redis-server defaults