@stll/oxlint-config 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1086,7 +1086,15 @@ OUTPUT_USER="$(getent passwd "$OUTPUT_UID" | cut -d: -f1)"
|
|
|
1086
1086
|
OUTPUT_HOME="$(getent passwd "$OUTPUT_UID" | cut -d: -f6)"
|
|
1087
1087
|
[[ -n "$OUTPUT_USER" && "$OUTPUT_HOME" == /* && -d "$OUTPUT_HOME" ]] || fail 'Invoking user requires an existing home directory'
|
|
1088
1088
|
root() { "$@"; }
|
|
1089
|
-
|
|
1089
|
+
# Service daemons outlive setup, so they inherit no descriptor beyond stdio: a cloud
|
|
1090
|
+
# runner can pass its terminal as extra descriptors and wait until every copy closes.
|
|
1091
|
+
service_run() (
|
|
1092
|
+
for descriptor in "/proc/$BASHPID/fd/"*; do
|
|
1093
|
+
descriptor="$(basename -- "$descriptor")"
|
|
1094
|
+
if [[ "$descriptor" =~ ^[0-9]+$ ]] && (( descriptor > 2 )); then eval "exec $descriptor>&-"; fi
|
|
1095
|
+
done
|
|
1096
|
+
exec runuser -u stll-cloud -- "$@"
|
|
1097
|
+
)
|
|
1090
1098
|
BUN_VERSION='@BUN@'
|
|
1091
1099
|
NODE_VERSION='@NODE@'
|
|
1092
1100
|
NODE_DIR="/opt/stll-cloud/node/$NODE_VERSION"
|