summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo <willysr@gmail.com>2013-02-20 05:57:59 (GMT)
committer Robby Workman <rworkman@slackbuilds.org>2013-02-23 04:30:05 (GMT)
commit334d8c2748daf01c224dbef3233c6f4293806f59 (patch)
treed86ecde45ad711bd8a43cc7e6eade7e443075217
parenta6e86630fb0c686dfb26801b807e1902e856e677 (diff)
downloadslackbuilds-334d8c2748daf01c224dbef3233c6f4293806f59.tar.gz
slackbuilds-334d8c2748daf01c224dbef3233c6f4293806f59.tar.xz
network/teamviewer: Remove dangling symlink first
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--network/teamviewer/teamviewer.SlackBuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/network/teamviewer/teamviewer.SlackBuild b/network/teamviewer/teamviewer.SlackBuild
index ac4273c9..ce2b938 100644
--- a/network/teamviewer/teamviewer.SlackBuild
+++ b/network/teamviewer/teamviewer.SlackBuild
@@ -112,7 +112,9 @@ install -m 0644 $CWD/rc.teamviewerd $PKG/etc/rc.d/rc.teamviewerd.new
rm -f $PKG/opt/teamviewer8/tv_bin/xdg-utils/xdg-email~
# Let's flip-flop the actual locations vs. symlinks of a couple of things:
-mkdir -p $PKG/var/log/teamviewer/ $PKG/etc/teamviewer
+# First remove the dangling symlink made by Debian packages:
+rm -f $PKG/var/log/teamviewer $PKG/etc/teamviewer
+mkdir -p $PKG/var/log/teamviewer $PKG/etc/teamviewer
rm -rf $PKG/opt/teamviewer8/logfiles/ $PKG/opt/teamviewer8/config/
ln -s /var/log/teamviewer $PKG/opt/teamviewer8/logfiles
ln -s /etc/teamviewer $PKG/opt/teamviewer8/config