# My broken Discourse install prevents theme import

**URL:** <https://meta.discourse.org/t/my-broken-discourse-install-prevents-theme-import/108657>\
**Category:** Support\
**Tags:** unsupported-install\
**Created:** [February 7, 2019, 8:36am UTC](https://meta.discourse.org/t/my-broken-discourse-install-prevents-theme-import/108657 "2019-02-07T08:36:06Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![ahmed\_alamiry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ahmed_alamiry/32/198190_2.png) [@ahmed\_alamiry](https://meta.discourse.org/u/ahmed_alamiry)\
**Post date:** [March 4, 2019, 1:00pm UTC](https://meta.discourse.org/t/my-broken-discourse-install-prevents-theme-import/108657/17 "2019-03-04T13:00:59Z")

</div>

@david Thanks a million

to whom looking to the same thing, to set the theme as default theme we can use `set_default!`

```ruby
s = RemoteTheme.update_tgz_theme( "/path/to/theme.tar.gz", user: Discourse.system_user)
s.set_default!

```

---

_[View the full topic](https://meta.discourse.org/t/my-broken-discourse-install-prevents-theme-import/108657)._
