diff --git a/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d/config-restcomm.sh b/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d/config-restcomm.sh index 2382f2cf7f..5201a64ad8 100755 --- a/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d/config-restcomm.sh +++ b/restcomm/configuration/config-scripts/as7-config-scripts/restcomm/autoconfig.d/config-restcomm.sh @@ -541,22 +541,21 @@ otherRestCommConf(){ } disableRVD() { - echo "disabling bundled RVD..." - if [ -f "$RVD_DEPLOY.deployed" ]; then - rm "$RVD_DEPLOY.deployed" - echo "RVD un-deployed" + if [[ -f "$RVD_DEPLOY.deployed" || -f "$RVD_DEPLOY.dodeploy" ]]; then + rm -f "$RVD_DEPLOY.deployed" + rm -f "$RVD_DEPLOY.dodeploy" + echo "RVD undeployed (or not deployed at all)" else - echo "RVD already not deployed" + echo "RVD not deployed" fi } enableRVD() { - echo "enabling bundled RVD..." if [ -f "$RVD_DEPLOY.deployed" ]; then echo "RVD already deployed" else touch "$RVD_DEPLOY".dodeploy - echo "RVD enabled/deployed" + echo "RVD deployed" fi }