Roots Discourse

Change name of 'current' symlink


#1

Hi,

There is a symlink called current, which points to the latest release.
I want to change the name of current to something else. However, I can’t find the part in the script which makes this symlink. Can someone point out where this happens. i.e in which role. So that I can change what is necessary.


#2

Did you try searching?


#3

Yes i did search on ‘current’, but I just don’t seem to find it. I’m obviously overlooking something, but I checked it multiple times.


#4

So you looked here? https://github.com/roots/trellis/search?utf8=✓&q=current


#5

It’s actually not in our codebase. It’s part of Ansible’s deploy_helper. See https://docs.ansible.com/ansible/deploy_helper_module.html.

You can set the current_path option.


#6

@nazeemsoeltan not sure if it will get merged but you can see how it’s done here.