Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2017-09-29 15:04:10 +0300
committerGitHub <noreply@github.com>2017-09-29 15:04:10 +0300
commit94f8d9852f34a7242c28453b9881c3192bfcf783 (patch)
treef5ba7810f54590fb276fe5351e938546384f344d
parent33314ce7c94c4d202c94af24e1015fde18850672 (diff)
parentd2e72f603649a14e9f683f00825bf4f3b187e465 (diff)
Merge pull request #2779 from atward/syno-monov2.0.2.9-2.0.2.9_canary_2017-10-01
Find Synology mono package if available
-rwxr-xr-xInstaller/Synology/scripts/start-stop-status12
1 files changed, 11 insertions, 1 deletions
diff --git a/Installer/Synology/scripts/start-stop-status b/Installer/Synology/scripts/start-stop-status
index 929e69d46..98daa727f 100755
--- a/Installer/Synology/scripts/start-stop-status
+++ b/Installer/Synology/scripts/start-stop-status
@@ -1,6 +1,16 @@
#!/bin/sh
source /root/.profile # Get Environment Variables from Root Profile
+if ! type mono 2>/dev/null; then
+ for d in /volume/*/@appstore/mono; do
+ if [ -x "$d/bin/mono" ]; then
+ PATH="$PATH:$d/bin"
+ export PATH
+ break
+ fi
+ done
+fi
+
# Package Varables
PACKAGE_NAME_SIMPLE="$(echo "$SYNOPKG_PKGNAME" | awk '{print tolower($0)}' | sed -e 's/ /_/g')"
PACKAGE_DIR="${SYNOPKG_PKGDEST}"
@@ -129,4 +139,4 @@ case $1 in
echo "Usage: $0 {start|stop|restart|status|debug|log|log-show|log-clear}"
exit 1
;;
-esac \ No newline at end of file
+esac