Bug#904515: x2goserver: fails to reinstall: ln: failed to create symbolic link '/etc/x2go/applications': File exists
Andreas Beckmann
anbe at debian.org
Wed Jul 25 11:35:33 BST 2018
Hi Mike,
On 2018-07-25 10:49, Mike Gabriel wrote:
>> ln: failed to create symbolic link '/etc/x2go/applications': File
>> exists
> # create /etc/x2go/applications symlink if not already
> there (as link or as dir)
> if ! test -e /etc/x2go/applications; then
> ln -s /usr/share/applications
> /etc/x2go/applications
> fi
> To my understanding, the code checks if /etc/x2go/applications exists,
> and only if not, it creates the symlink.
at the point of failure /etc/x2go/applications is a dangling symlink
test -e returns false in that case, so you need to check for a link as
well (test -L)
Andreas
More information about the pkg-remote-team
mailing list