         _build/dev/rel/#{app}/bin/#{app}
     """)
 
-    if ecto? do
+    if opts.ecto do
       post_install_instructions("config/runtime.exs", ~r/ECTO_IPV6/, """
       [warn] Conditional IPV6 support missing from runtime configuration.
 

    File.chmod!("rel/overlays/bin/server", 0o755)
    File.chmod!("rel/overlays/bin/server.bat", 0o755)

    if ecto? do
      File.chmod!("rel/overlays/bin/migrate", 0o755)
      File.chmod!("rel/overlays/bin/migrate.bat", 0o755)
    end

        "#{major}.0"
    end
  end

  defp ecto_sql_installed?, do: Application.loaded_applications() |> List.keymember?(:ecto_sql, 0)
end
