From 7ac3e2bf2c987667379cd901daec75936c3b9932 Mon Sep 17 00:00:00 2001 From: Dustin B Date: Tue, 14 May 2019 08:45:11 -0400 Subject: [PATCH] Better approach to banner removal Rather than deleting the entire code line, this adjusts the "< 5" check that enables the banner. --- xo_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xo_install.sh b/xo_install.sh index 45f2564..2bf4cdb 100644 --- a/xo_install.sh +++ b/xo_install.sh @@ -48,8 +48,8 @@ ln -s /usr/bin/node /usr/local/bin/node /usr/bin/git clone -b $xo_branch $xo_server -# Removing the "Built from Source - no support banner -sed -i '225,235 d' /opt/xen-orchestra/packages/xo-web/src/xo-app/index.js +# Disabling the "Built from Source Banner - No Support" Bar across the top of screen +sed -i 's/process.env.XOA_PLAN === 5/process.env.XOA_PLAN === 6/g' /opt/xen-orchestra/packages/xo-web/src/xo-app/index.js # Patch to allow config restore sed -i 's/< 5/> 0/g' /opt/xen-orchestra/packages/xo-web/src/xo-app/settings/config/index.js