- chmod: "+x"
- contents: |
- #!/bin/bash
- sv stop nginx
- - file:
- path: /etc/runit/3.d/02-unicorn
- chmod: "+x"
- contents: |
- #!/bin/bash
- sv stop unicorn
- - exec:
- cd: $home
- hook: code
- cmd:
- - git reset --hard
- - git clean -f
- - git remote set-branches --add origin main
- - git remote set-branches origin $version
- - git fetch --depth 1 origin $version