diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-05-09 19:09:24 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-05-09 19:09:24 +0000 |
| commit | 052be74f98489c711ac4f8a5421db39304e39a3f (patch) | |
| tree | f4f25cef92c943445cecc2ee0c324817c9d87d66 | |
| parent | f851b268c586329731b9a213e20360d2ef0f108a (diff) | |
| download | execline-052be74f98489c711ac4f8a5421db39304e39a3f.tar.gz | |
version: 2.9.9.1v2.9.9.1
| -rwxr-xr-x | examples/etc/execline-shell | 10 | ||||
| -rwxr-xr-x | examples/etc/execline-startup | 4 |
2 files changed, 6 insertions, 8 deletions
diff --git a/examples/etc/execline-shell b/examples/etc/execline-shell index ac8c141..4e81ac0 100755 --- a/examples/etc/execline-shell +++ b/examples/etc/execline-shell @@ -1,18 +1,16 @@ #!/bin/execlineb -S0 -backtick -n defaulthome +backtick -nE defaulthome { if -nt { - backtick -n defaultuser { id -un } - importas -u defaultuser defaultuser - importas -D $defaultuser USER USER + backtick -nE defaultuser { id -un } + importas -SD $defaultuser USER redirfd -w 2 /dev/null homeof ${USER} } s6-echo / } -importas -u defaulthome defaulthome -importas -D $defaulthome HOME HOME +importas -SD $defaulthome HOME tryexec { ${HOME}/.execline-shell $@ } /bin/sh $@ diff --git a/examples/etc/execline-startup b/examples/etc/execline-startup index 4afc557..ec64c83 100755 --- a/examples/etc/execline-startup +++ b/examples/etc/execline-startup @@ -2,8 +2,8 @@ /bin/multisubstitute { - importas -i HOME HOME - importas -i LOGNAME LOGNAME + importas -Si HOME + importas -Si LOGNAME } /bin/export USER ${LOGNAME} /bin/s6-envdir /etc/env-startup |
