I essentially want to run this command…
ln -s /opt/gitlab/embedded/service/gitlab-shell/hooks/ /var/opt/gitlab/git-data/repositories/web/*/hooks
This would create a symbolic link in all folders under the web folder called hooks however it returns no errors but it does not actually add the symlink.
Best Answer
You'll probably want to use the
find
command using themaxdepth
option. I created this sample directory structure:Let's say I wanted to create a symlink to
/tmp/hooks
in each subdir but not thenotme
subdir: