I have an installed application in
/home/appuser/app/ In that directory there is a separate directory
confs for the config files, which is symlinked to
../app-confs, like so:
lrwxrwxrwx 1 appuser appuser 19 Mar 25 15:22 confs -> ../app-confs/
Looks fine, works fine.
Now I'd like other users to use that application from the same directory (
/home/appuser/app/), so the updates can be done in only one place, but with a different configs directory.
So I create a symlink in
/home/appuser/app/. And I create a new configs directory
/home/user-a/, I do see
drwxr-xr-x 8 user-a user-a 4096 Apr 29 10:57 app drwxr-xr-x 8 user-a user-a 4096 Apr 29 10:57 app-confs
/home/user-a/app, I see
... lrwxrwxrwx 1 appuser appuser 19 Mar 25 15:22 confs -> ../app-confs/ ...
But when I list
/home/user-a/confs/, I see files from
/home/appuser/confs/, the original confs and not the relative one.
Is there a way to have a relative symlink with a symlinked directory?
mkdir ~/TEST cd ~/TEST mkdir global cd global mkdir app mkdir conf touch conf/global_conf cd app ln -s ../conf conf cd ~/TEST mkdir user cd user ln -s ~/TEST/global/app app mkdir conf touch conf/user_conf cd app ls -l conf/
You would expect "user_conf" file to be shown, or not?