From 05321b3375e0b509ff9c0afbb703e7b766081e35 Mon Sep 17 00:00:00 2001 From: Kaloyan Raev Date: Thu, 27 Oct 2016 10:48:03 +0300 Subject: [PATCH] Improve setting zray.zendserver_ui_url before starting Zend Server Signed-off-by: Kaloyan Raev --- ide/che-core-ide-stacks/src/main/resources/stacks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ide/che-core-ide-stacks/src/main/resources/stacks.json b/ide/che-core-ide-stacks/src/main/resources/stacks.json index 1ba12ef8f1c..e74be692e8d 100644 --- a/ide/che-core-ide-stacks/src/main/resources/stacks.json +++ b/ide/che-core-ide-stacks/src/main/resources/stacks.json @@ -1988,7 +1988,7 @@ { "name": "restart zend server", "type": "custom", - "commandLine": "sudo sed -i 's#zray.zendserver_ui_url=.*#zray.zendserver_ui_url=http://${server.port.10081}/ZendServer#g' /usr/local/zend/etc/conf.d/zray.ini && sudo /usr/local/zend/bin/zendctl.sh restart", + "commandLine": "sudo sqlite3 /usr/local/zend/var/db/zsd.db \"UPDATE ZSD_DIRECTIVES SET DISK_VALUE='http://${server.port.10081}/ZendServer' WHERE NAME='zray.zendserver_ui_url'\" && sudo sed -i 's#zray.zendserver_ui_url=.*#zray.zendserver_ui_url=http://${server.port.10081}/ZendServer#g' /usr/local/zend/etc/conf.d/zray.ini && sudo /usr/local/zend/bin/zendctl.sh restart", "attributes": { "previewUrl": "http://${server.port.80}" }