rm overeride file if present

This commit is contained in:
abhishek9686 2024-01-23 11:47:57 +05:30
parent b7e900f4bc
commit c2eb66243b

View file

@ -570,6 +570,8 @@ install_netmaker() {
wget -qO "$SCRIPT_DIR"/docker-compose.yml $COMPOSE_URL
if [ "$UPGRADE_FLAG" = "yes" ]; then
wget -qO "$SCRIPT_DIR"/docker-compose.override.yml $COMPOSE_OVERRIDE_URL
elif [ test -f "$SCRIPT_DIR"/docker-compose.override.yml ]; then
rm -f "$SCRIPT_DIR"/docker-compose.override.yml
fi
wget -qO "$SCRIPT_DIR"/Caddyfile "$CADDY_URL"
wget -qO "$SCRIPT_DIR"/netmaker.default.env "$BASE_URL/scripts/netmaker.default.env"