chore: fix typoed variable names in installation cleanup
This commit is contained in:
@@ -894,9 +894,9 @@ function UpdateXO {
|
|||||||
local XO_WEB_ACTIVE="$(runcmd_stdout "readlink -e $INSTALLDIR/xo-web")"
|
local XO_WEB_ACTIVE="$(runcmd_stdout "readlink -e $INSTALLDIR/xo-web")"
|
||||||
local XO_PROXY_ACTIVE="$(runcmd_stdout "readlink -e $INSTALLDIR/xo-proxy")"
|
local XO_PROXY_ACTIVE="$(runcmd_stdout "readlink -e $INSTALLDIR/xo-proxy")"
|
||||||
|
|
||||||
for DELETEABLE in $INSTALLATIONS; do
|
for DELETABLE in $INSTALLATIONS; do
|
||||||
if [[ "$XO_SERVER_ACTIVE" != "${DELETABLE}"* ]] && [[ "$XO_WEB_ACTIVE" != "${DELETEABLE}"* ]] && [[ "$XO_PROXY_ACTIVE" != "${DELETEABLE}"* ]]; then
|
if [[ "$XO_SERVER_ACTIVE" != "${DELETABLE}"* ]] && [[ "$XO_WEB_ACTIVE" != "${DELETABLE}"* ]] && [[ "$XO_PROXY_ACTIVE" != "${DELETABLE}"* ]]; then
|
||||||
runcmd "rm -rf $DELETEABLE"
|
runcmd "rm -rf $DELETABLE"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
printok "Removing old inactive installations. Leaving $PRESERVE latest"
|
printok "Removing old inactive installations. Leaving $PRESERVE latest"
|
||||||
|
Reference in New Issue
Block a user