Fix redis install script 29/7229/1
authorGary Wu <gary.i.wu@huawei.com>
Thu, 10 Aug 2017 16:51:08 +0000 (09:51 -0700)
committerGary Wu <gary.i.wu@huawei.com>
Thu, 10 Aug 2017 16:51:34 +0000 (09:51 -0700)
Change-Id: I373ed9f55924b2414ba6bc3c5620fdc97f719a4f
Issue-id: CIMAN-14
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
packer/provision/redis.sh

index 11e2177..fc8b2a0 100644 (file)
@@ -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