# Application Update with Client Authority

**URL:** <https://hub.mender.io/t/application-update-with-client-authority/2297>\
**Category:** General Discussions\
**Created:** [August 8, 2020, 6:19am UTC](https://hub.mender.io/t/application-update-with-client-authority/2297 "2020-08-08T06:19:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamanRatna](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@SamanRatna](https://hub.mender.io/u/SamanRatna)\
**Post date:** [August 8, 2020, 6:19am UTC](https://hub.mender.io/t/application-update-with-client-authority/2297/1 "2020-08-08T06:19:31Z")

</div>

Hey guys,  
I was wanting to do a directory update such that the Mender Client has the authority to make the update on its device even if the new release is already deployed.  
I used directory-artifact-gen from [Directory](https://hub.mender.io/t/directory/325) to create and deploy new releases.  
As of now, I am able to make successful directory updates but the client would not be aware of the update made on its device.  
Also, does the directory-artifact-gen not use state scripts? I found no use of state scripts using it.

---

<div class="post-metadata">

**Author:** ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)\
**Post date:** [August 10, 2020, 8:38am UTC](https://hub.mender.io/t/application-update-with-client-authority/2297/2 "2020-08-10T08:38:07Z")

</div>

Hi @SamanRatna,

I don’t understand your use case nor the exact problem that you are facing. Which kind of updates are you trying to perform?

What do you mean by “but the client would not be aware of the update made on its device.”? You can see the latest update on the client by calling `mender show-artifact` in the device itself. (The server will also show it).

With regards to the state scripts, `directory-artifact-gen` is not meant to ship any state script with the Artifact by default, but you can pass your own arguments to `mender-artifact` to install an state script. For example:

```auto
directory-artifact-gen [...] -- --script /path/to/my/statescript

```

Please give me some more background so that I can help you better 🙂

Lluís

---

<div class="post-metadata">

**Author:** ![SamanRatna](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@SamanRatna](https://hub.mender.io/u/SamanRatna)\
**Post date:** [August 12, 2020, 11:55am UTC](https://hub.mender.io/t/application-update-with-client-authority/2297/3 "2020-08-12T11:55:10Z")

</div>

Thanks @lluiscampos. It worked !
