diff options
author | Adam Ward <adamw@subdesigns.net> | 2017-09-29 14:48:12 +0300 |
---|---|---|
committer | Adam Ward <adamw@subdesigns.net> | 2017-09-29 14:48:12 +0300 |
commit | d2e72f603649a14e9f683f00825bf4f3b187e465 (patch) | |
tree | f5ba7810f54590fb276fe5351e938546384f344d | |
parent | 33314ce7c94c4d202c94af24e1015fde18850672 (diff) |
Find Synology mono package if available
-rwxr-xr-x | Installer/Synology/scripts/start-stop-status | 12 |
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 |