# WSL2 & Docker & Gateway Update Script

**URL:** <https://forum.inductiveautomation.com/t/wsl2-docker-gateway-update-script/90782>\
**Category:** Ignition\
**Created:** [May 23, 2024, 10:49am UTC](https://forum.inductiveautomation.com/t/wsl2-docker-gateway-update-script/90782 "2024-05-23T10:49:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michel\_feria](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@michel\_feria](https://forum.inductiveautomation.com/u/michel_feria)\
**Post date:** [May 23, 2024, 10:49am UTC](https://forum.inductiveautomation.com/t/wsl2-docker-gateway-update-script/90782/1 "2024-05-23T10:49:17Z")

</div>

Hello, I'm trying to implement the auto-save script that is mentioned in the best practice but under docker and I've some issues when trying to call the git-auto-commit.bat routine.  
I already did the initial commit to GitLab but when I try to call the routine, it gives an error as the file is not found.  
this is my update script content:

```python

import time
filePath = "data/projects/tags.json"
system.tag.exportTags(filePath=filePath, tagPaths=["[default]"])
time.sleep(5)
system.util.execute(['data/git-auto-commit.sh'])

```

but I'm getting this error:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/7/a7e6dd375f8c2d877f3c5a0d9f8de07e09470371.png)

so I undersand that maybe I need to provide some extra permissions or credentials but I don't find how to do it.

thanks in advance!

kind regards,  
MF

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 23, 2024, 10:59am UTC](https://forum.inductiveautomation.com/t/wsl2-docker-gateway-update-script/90782/2 "2024-05-23T10:59:41Z")

</div>

Tip: [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

---

<div class="post-metadata">

**Author:** ![michel\_feria](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@michel\_feria](https://forum.inductiveautomation.com/u/michel_feria)\
**Post date:** [May 23, 2024, 11:06am UTC](https://forum.inductiveautomation.com/t/wsl2-docker-gateway-update-script/90782/3 "2024-05-23T11:06:33Z")

</div>

Hi, I fixed the permission issue attaching a shell to the running container and then, giving to the file git-auto-commit.sh the excecute rights...  
I just used  
`chmod +x git-auto-commit.sh`  
but I don't see any change in my repo, so the script is doing nothing, here below the git-auto-commmit.sh content:

```python
cd data/projects
NOW=$(date +"%m-%d-%Y %H:%M:%S")
git add .
git commit -m "Designer save @ $NOW"
git push origin

```

thanks in advance!
