Better approach to banner removal

Rather than deleting the entire code line, this adjusts the "< 5" check that enables the banner.
This commit is contained in:
Dustin B 2019-05-14 08:45:11 -04:00 committed by GitHub
parent 174d0df759
commit 7ac3e2bf2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ ln -s /usr/bin/node /usr/local/bin/node
/usr/bin/git clone -b $xo_branch $xo_server /usr/bin/git clone -b $xo_branch $xo_server
# Removing the "Built from Source - no support banner # Disabling the "Built from Source Banner - No Support" Bar across the top of screen
sed -i '225,235 d' /opt/xen-orchestra/packages/xo-web/src/xo-app/index.js 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 # Patch to allow config restore
sed -i 's/< 5/> 0/g' /opt/xen-orchestra/packages/xo-web/src/xo-app/settings/config/index.js sed -i 's/< 5/> 0/g' /opt/xen-orchestra/packages/xo-web/src/xo-app/settings/config/index.js