aboutsummaryrefslogtreecommitdiff
path: root/dbx-init
diff options
context:
space:
mode:
Diffstat (limited to 'dbx-init')
-rwxr-xr-xdbx-init32
1 files changed, 3 insertions, 29 deletions
diff --git a/dbx-init b/dbx-init
index 0cf9ac3..f0ac1c1 100755
--- a/dbx-init
+++ b/dbx-init
@@ -3,34 +3,8 @@
set -euo pipefail
-if [[ ! -f /run/.containerenv ]]; then
- echo "ERROR: not in a container" >&2
+if [[ ! -f /run/.dbxenv ]]; then
+ echo "ERROR: not in a devbox" >&2
fi
-h="/dbx"
-u="${1:-1000}"
-g="${2:-1000}"
-
-dnf install -y \
- fish \
- fzf \
- netcat \
- ripgrep \
- tini \
- vim-enhanced
-
-if [[ ! -d "$h" ]]; then
- usermod \
- --home "$h" \
- --groups wheel \
- --password "" \
- --shell $(command -v fish) \
- $(id -nu "$u")
-
- mkdir --parents "$h"
- chown --recursive "$u:$g" "$h"
-fi
-
-echo "=== READY TO ROLL! ==="
-touch /run/.dbxenv
-exec tini sleep -- infinity
+exec tini sshd -- -D -e