From 70589c13c74a590dcdf9eb50b524e3d5ddb7472b Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 13 Jan 2015 06:05:03 +0000 Subject: [PATCH] * synology os removes /usr/syno/bin/* links on upgrade, so lets try to put our symlink to /usr/local/bin/ --- installer/spk/scripts/postinst | 2 +- installer/spk/scripts/preuninst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/spk/scripts/postinst b/installer/spk/scripts/postinst index a99da562..d530fcae 100644 --- a/installer/spk/scripts/postinst +++ b/installer/spk/scripts/postinst @@ -5,7 +5,7 @@ mkdir -m 777 "$SYNOPKG_PKGDEST/data" chown -R admin.users "$SYNOPKG_PKGDEST/data" # create /bin symlink -ln -s -f "$SYNOPKG_PKGDEST/filebot.sh" /usr/syno/bin/filebot +ln -s -f "$SYNOPKG_PKGDEST/filebot.sh" /usr/local/bin/filebot # end exit 0 diff --git a/installer/spk/scripts/preuninst b/installer/spk/scripts/preuninst index af8a459a..ffade56a 100644 --- a/installer/spk/scripts/preuninst +++ b/installer/spk/scripts/preuninst @@ -1,6 +1,6 @@ #!/bin/sh # remove /bin symlink -rm -f /usr/syno/bin/filebot +rm -f /usr/local/bin/filebot exit 0