Use native Goose jobs during Portal releases
Memind CI / Test, build, and release guards (push) Failing after 11m21s
Memind CI / Test, build, and release guards (push) Failing after 11m21s
This commit is contained in:
@@ -523,13 +523,23 @@ remount_goosed_after_live_swap() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ ! -x "${docker_bin}" || ! -f "${compose_file}" ]]; then
|
||||
local gui="gui/$(id -u)"
|
||||
local native_jobs=0
|
||||
for port in "${native_ports[@]}"; do
|
||||
if launchctl print "${gui}/cn.tkmind.goosed-native-${port}" >/dev/null 2>&1; then
|
||||
native_jobs=$((native_jobs + 1))
|
||||
fi
|
||||
done
|
||||
if (( native_jobs > 0 && native_jobs != ${#native_ports[@]} )); then
|
||||
echo "goosed remount failed: configured targets span native and non-native services" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ "${native_jobs}" -eq "${#native_ports[@]}" || ! -x "${docker_bin}" || ! -f "${compose_file}" ]]; then
|
||||
say "重启 native goosed 以刷新 Portal/MindSpace bind mount"
|
||||
mkdir -p "${APP_DIR}"
|
||||
printf '%s\n' "${marker_value}" > "${marker_host}"
|
||||
|
||||
local gui="gui/$(id -u)"
|
||||
local port
|
||||
for port in "${native_ports[@]}"; do
|
||||
launchctl kickstart -k "${gui}/cn.tkmind.goosed-native-${port}" >/dev/null 2>&1 || true
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user