fix(monitor): preserve literal daemon script arguments
This commit is contained in:
+3
-7
@@ -4,11 +4,7 @@ install_monitor_launchdaemon() {
|
||||
[ -n "$data_mount" ] && root="$data_mount"
|
||||
|
||||
local unleash_src
|
||||
if [ -n "$SCRIPT_DIR" ]; then
|
||||
unleash_src="$SCRIPT_DIR/unleash"
|
||||
else
|
||||
unleash_src="$(cd "$(dirname "$0")" && pwd)/unleash"
|
||||
fi
|
||||
unleash_src=$(_launchd_script_path)
|
||||
|
||||
step "Installing monitor LaunchDaemon..."
|
||||
|
||||
@@ -26,8 +22,8 @@ install_monitor_launchdaemon() {
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/bin/bash</string>
|
||||
<string>-c</string>
|
||||
<string>${unleash_src} monitor</string>
|
||||
<string>${unleash_src}</string>
|
||||
<string>monitor</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
Reference in New Issue
Block a user