summaryrefslogtreecommitdiff
path: root/user/transmission/transmission-daemon.post-upgrade
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-10-01 00:48:02 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-10-01 00:48:02 +0000
commitd9476f27a0e296f237ec65a9a4fda7b9d4911f4b (patch)
tree1cf4874183e0cff9ba7182dcb05d410c71746ca0 /user/transmission/transmission-daemon.post-upgrade
parentf4cc6d8729916268ad5b96374f4a3466c837e5da (diff)
parenta7906406ecd52a1156f0f182b92a72be648f87b3 (diff)
downloadpackages-d9476f27a0e296f237ec65a9a4fda7b9d4911f4b.tar.gz
packages-d9476f27a0e296f237ec65a9a4fda7b9d4911f4b.tar.bz2
packages-d9476f27a0e296f237ec65a9a4fda7b9d4911f4b.tar.xz
packages-d9476f27a0e296f237ec65a9a4fda7b9d4911f4b.zip
Merge branch 'popular-demand' into 'master'
Popular demand (round 2) See merge request adelie/packages!346
Diffstat (limited to 'user/transmission/transmission-daemon.post-upgrade')
-rw-r--r--user/transmission/transmission-daemon.post-upgrade10
1 files changed, 10 insertions, 0 deletions
diff --git a/user/transmission/transmission-daemon.post-upgrade b/user/transmission/transmission-daemon.post-upgrade
new file mode 100644
index 000000000..e0aaa8e02
--- /dev/null
+++ b/user/transmission/transmission-daemon.post-upgrade
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+dir=/var/lib/transmission
+
+# rename config and create compat symlink
+if [ -e "$dir"/.config ] && ! [ -e "$dir"/config ]; then
+ mv "$dir"/.config "$dir"/config
+ ln -s config "$dir"/.config
+fi
+