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:
parent
174d0df759
commit
7ac3e2bf2c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue