aboutsummaryrefslogtreecommitdiff
path: root/network/teamviewer/teamviewer.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@gmail.com>2013-02-20 12:57:59 +0700
committerRobby Workman <rworkman@slackbuilds.org>2013-02-22 22:30:05 -0600
commit334d8c2748daf01c224dbef3233c6f4293806f59 (patch)
treed86ecde45ad711bd8a43cc7e6eade7e443075217 /network/teamviewer/teamviewer.SlackBuild
parenta6e86630fb0c686dfb26801b807e1902e856e677 (diff)
network/teamviewer: Remove dangling symlink first
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/teamviewer/teamviewer.SlackBuild')
-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 ac4273c99f7da..ce2b938bd43ed 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