summaryrefslogtreecommitdiff
path: root/repo/transmission/transmission-daemon.post-upgrade
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
committerdavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
commit66c326b6d65388e9f1003715ad9675505f01f9d2 (patch)
tree40d7355cccfa3464902cf339a563e744c28a7101 /repo/transmission/transmission-daemon.post-upgrade
parentfccdaa986f67f820df2914bef851d5fed77abac8 (diff)
added porting from alpine linux
Diffstat (limited to 'repo/transmission/transmission-daemon.post-upgrade')
-rw-r--r--repo/transmission/transmission-daemon.post-upgrade10
1 files changed, 10 insertions, 0 deletions
diff --git a/repo/transmission/transmission-daemon.post-upgrade b/repo/transmission/transmission-daemon.post-upgrade
new file mode 100644
index 0000000..e0aaa8e
--- /dev/null
+++ b/repo/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
+